views:

75

answers:

1

Hi all,

I have the need to serialize an Area object (java.awt.geom.Area) in a socket. However it doesn't seem to be serializable. Is there a way to do such thing? Maybe by converting it into a different object?

Thanks in advance

+1  A: 

Use XStream to trivially convert it to/from XML. You don't need your object to implement particular interfaces, and the serialisation is customisable.

Brian Agnew
Thanks for the response. Unfortunately I cannot send too much information, therefore I cannot affort XML.
Jack