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
| Access | Constructor and Description |
|---|---|
| public | ProxyObjectOutputStream(OutputStream out)
create an output stream which can be used to serialize an object graph which includes proxies created using class ProxyFactory |
| Modifier and Type | Method and Description |
|---|---|
| protected void | writeClassDescriptor(ObjectStreamClass
class descriptor to write to the stream desc)Overrides java. Write the specified class descriptor to the ObjectOutputStream. |
| ProxyObjectOutputStream | back to summary |
|---|---|
| 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
| |
| writeClassDescriptor | back to summary |
|---|---|
| protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException Overrides java. Doc from java. Write the specified class descriptor to the ObjectOutputStream. Class
descriptors are used to identify the classes of objects written to the
stream. Subclasses of ObjectOutputStream may override this method to
customize the way in which class descriptors are written to the
serialization stream. The corresponding method in ObjectInputStream,
Note that this method will only be called if the ObjectOutputStream
is not using the old serialization stream format (set by calling
ObjectOutputStream's
| |