Using reflection - how to get all fields and methods
<p>Using Java reflection:</p>

<ul>
<li>How can I get all the methods of a given object (private, protected, public etc)</li>
<li>And perhaps create a structural representation of the class</li>
<li>And finally, serialize the object into String or byte array</li>
</ul>

<p>Does this idea look sound? or this won't get me anywhere? </p>

<p>What I'm trying to achieve is to be able to:</p>

<ul>
<li>Serialize any <code>java.lang.Object</code> into byte array or String</li>
<li>Class / Objects that don't implement <code>Serializable</code> will be thrown into my application for serialization</li>
</ul>
