Class JPPFObjectInputStream

java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.jppf.serialization.JPPFObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

public class JPPFObjectInputStream extends ObjectInputStream
Implementation of ObjectInputStream that reads objects without regards to whether they implement Serializable or not. This allows using non-serializable classes in JPPF tasks, especially when their source code is not available.

The rest of the ObjectInputStream specification is respected:

  • transient fields are not deserialized
  • private void readObject(ObjectInputStream) is used whenever implemented
  • the Externalizable interface is respected
Author:
Laurent Cohen