The moose likes Java in General and the fly likes manual serialization in java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "manual serialization in java ?" Watch "manual serialization in java ?" New topic

manual serialization in java ?

anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53

if i don't want to implement Serializable interface then is there any way i can serialize object ?
how can we manual serialize the object ?

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

perhaps, xstream .
Ivan Jozsef Balazs

Joined: May 22, 2012
Posts: 867
anchit pancholi wrote:
how can we manual serialize the object ?

What do exactly mean by "serialize the object" ?

In the stricter (technical) sense, serialization is the given mechanism built into Java which is "triggered" for a class by its implementing the marker interface Serializable.

If you mean something different (in the broader sense), you have to write it.
It is sorta covered in the JavaRanch Style Guide.
subject: manual serialization in java ?