Achiving serialization without implementing the interface serializable.

how to make a class serializable without implementing the interface the serializable.
[92 byte] By [chollangia] at [2007-11-27 5:53:13]
# 1
You could use java.beans.XMLEncoder for instance, afaik it doesn't require the Serializable marker interface.
quittea at 2007-7-12 15:45:56 > top of Java-index,Java Essentials,Java Programming...
# 2
... although the objects you're converting with XMLEncoder must be JavaBeans, not just any POJO.For the latter, you may want to look at XStream, or JSX.
karma-9a at 2007-7-12 15:45:56 > top of Java-index,Java Essentials,Java Programming...