• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to identify whether the object is serialized or not?  RSS feed

 
Dharanishankar Dhatchinamoorthy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybdoy,

Hi here i have some doubt, after serializion the object become serialized, that is state of an object been stored.

Normally how can we identify that particular object is already serialized or not?

Is there any way's to find out in object?
 
krishnamoorthy kitcha
Ranch Hand
Posts: 96
 
Joe Ess
Bartender
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not aware of any way to query the object itself to see if it has been serialized. I guess you could use custom serialization (see the javadoc) to set a flag in the object, but then you'd be changing the state of the object and the stored version would not be in sync. . .
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you elaborate as to why you need such an information, then probably we can help you better.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!