Class ProxyObjectOutputStream

java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
javassist.util.proxy.ProxyObjectOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants, AutoCloseable

public class ProxyObjectOutputStream extends ObjectOutputStream
An input stream class which knows how to serialize proxies created via ProxyFactory. It must be used when serialising proxies created from a proxy factory configured with ProxyFactory.useWriteReplace set to false. Subsequent deserialization of the serialized data must employ a ProxyObjectInputStream
Author:
Andrew Dinn
  • Constructor Details

    • ProxyObjectOutputStream

      public ProxyObjectOutputStream(OutputStream out) throws IOException
      create an output stream which can be used to serialize an object graph which includes proxies created using class ProxyFactory
      Parameters:
      out -
      Throws:
      IOException - whenever ObjectOutputStream would also do so
      SecurityException - whenever ObjectOutputStream would also do so
      NullPointerException - if out is null