Solved

I am trying to understand the private void readObjectNoData() customizable method in Serialization

Posted on 2010-11-20
1
1,523 Views
Last Modified: 2013-11-24
Can someone direct me to a working example of how this gets used.
I am still unsure exactly how this works supposedly if the super class of a class was not stored in the ObjectOutputStream and upon readObject() execuiting  somehow this kicks in either within the class being deserialized and/or its super class?

An example would really make this a lot clearer. Does anyone have such a sample source code file?
0
Comment
Question by:Robert Silver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34181671
hard to give an example. Its to handle deserializing an object where the a superclass has been added since it was serialized. By default it will initialize the fields to default values. readObjectNoData() provides a hook to override this behaviour

http://www.informit.com/articles/article.aspx?p=417997&seqNum=8
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Selenium docs api java index 3 98
jsp CRUD operations with and without prepared statement also hibernatge 1 50
Java Eclipse Loop 3 50
ArrayList Adding/settign data 3 38
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question