Class JPPFObjectOutputStream

java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
org.jppf.serialization.JPPFObjectOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants, AutoCloseable

public class JPPFObjectOutputStream extends ObjectOutputStream
Implementation of ObjectOutputStream that writes 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 ObjectOutputStream specification is respected:

  • transient fields are not serialized
  • private void writeObject(ObjectOutputStream) is used whenever implemented
  • the Externalizable interface is respected
Author:
Laurent Cohen