Sunday, May 4, 2014

readObject and writeObject

Review the nuances of Java serialization, specifically see http://webcache.googleusercontent.com/search?q=cache:Q1Rpg2MReCIJ:www.javablogging.com/what-are-writeobject-and-readobject-customizing-the-serialization-process/+&cd=4&hl=en&ct=clnk&gl=us spells out how readObject and writeObject are called by ObjectOutputStream if present using getPrivateMethod. These are a way to customize serialization. Can call defaultReadObject/defaultWriteObject on ObjectInputStream/ObjectOutputStream before performing custom setup.

No comments:

Post a Comment