ProxyFactory and
serializedo via a ProxyObjectOutputStream. It must be used when deserialising proxies created
from a proxy factory configured with ProxyFactory#useWriteReplace set to false.
| Modifier and Type | Field and Description |
|---|---|
| private ClassLoader | loader
the loader to use to resolve classes for proxy superclass and interface names read from the stream. |
| Access | Constructor and Description |
|---|---|
| public | ProxyObjectInputStream(InputStream in)
create an input stream which can be used to deserialize an object graph which includes proxies created using class ProxyFactory. |
| Modifier and Type | Method and Description |
|---|---|
| protected ObjectStreamClass | readClassDescriptor()
Overrides java. Read a class descriptor from the serialization stream. |
| public void |
| loader | back to summary |
|---|---|
| private ClassLoader loader the loader to use to resolve classes for proxy superclass and interface names read from the stream. defaults to the context class loader of the thread which creates the input stream or the system class loader if the context class loader is null. | |
| ProxyObjectInputStream | back to summary |
|---|---|
| public ProxyObjectInputStream(InputStream in) throws IOException create an input stream which can be used to deserialize an object graph which includes proxies created using class ProxyFactory. the classloader used to resolve proxy superclass and interface names read from the input stream will default to the current thread's context class loader or the system classloader if the context class loader is null.
| |
| readClassDescriptor | back to summary |
|---|---|
| protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException Overrides java. Doc from java. Read a class descriptor from the serialization stream. This method is
called when the ObjectInputStream expects a class descriptor as the next
item in the serialization stream. Subclasses of ObjectInputStream may
override this method to read in class descriptors that have been written
in non-standard formats (by subclasses of ObjectOutputStream which have
overridden the
| |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader loader) Reset the loader to be | |