This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "manual serialization in java ?" Watch "manual serialization in java ?" New topic
Author

manual serialization in java ?

anchit pancholi
Ranch Hand

Joined: Oct 14, 2010
Posts: 53
Hi,

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 ?

Thanks
Anchit
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

perhaps, xstream .
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
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 ?
 
Similar Threads
cookies and storing data
Store array in database
Can I serialize a java object to Varchar field in a database
serialization with Java refection
serialization