Hi all.
I'm studying the
java IO and faced the callback readObjectNoData at java API about Serializable interface.
I understood the use of readObject and writeObject callbacks, but this readObjectNoData is not clear for me.
So I'd like to see real example of using it. I've tried to create a Class "Monkey" that extends "Animal" (and Animal implements Serializable), and I've serialized it using FileOutputStream and ObjectOutputStream. So I changed the Monkey hierarchy making this class to extend Mammal instead. So, I thought it will be a good scenario to
test the use of readObjectNoData, but I wrote a readObjectNoData within Monkey class to configure Mammal attributes manually. So my readObjectNoData aren't called when deserializing this object.
Could someone help me to understood better about readObjectNoData, and if possible show some example?
Tks!!