Using Java reflection:
- How can I get all the methods of a given object (private, protected, public etc)
- And perhaps create a structural representation of the class
- And finally, serialize the object into String or byte array
Does this idea look sound? or this won't get me anywhere?
What I'm trying to achieve is to be able to:
- Serialize any
java.lang.Objectinto byte array or String - Class / Objects that don't implement
Serializablewill be thrown into my application for serialization