| Modifier and Type | Field and Description |
|---|---|
| private final ClassResolver | classResolver
Deprecated
as a consequence of
ClassResolver being deprecated.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | CompactObjectInputStream(InputStream in, ClassResolver classResolver)
Deprecated
as a consequence of
ClassResolver being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| protected ObjectStreamClass | readClassDescriptor()
Read a class descriptor from the serialization stream.
|
| protected void | readStreamHeader()
Overrides java. |
| protected Class | resolveClass(ObjectStreamClass
an instance of class desc)ObjectStreamClassOverrides java. |
| classResolver | back to summary |
|---|---|
| private final ClassResolver classResolver
Deprecated as a consequence of | |
| CompactObjectInputStream | back to summary |
|---|---|
| pack-priv CompactObjectInputStream(InputStream in, ClassResolver classResolver) throws IOException
Deprecated as a consequence of | |
| 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
| |
| readStreamHeader | back to summary |
|---|---|
| protected void readStreamHeader() throws IOException Overrides java. Doc from java. The readStreamHeader method is provided to allow subclasses to read and verify their own stream headers. It reads and verifies the magic number and version number.
| |
| resolveClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Load the local class equivalent of the specified stream class description. Subclasses may implement this method to allow classes to be fetched from an alternate source. The corresponding method in The default implementation of this method in
Class.forName(desc.getName(), false, loader) loader is the first class loader on the current
thread's stack (starting from the currently executing method) that is
neither the platform
class loader nor its ancestor; otherwise, loader is the
platform class loader. If this call results in a
ClassNotFoundException and the name of the passed
ObjectStreamClass instance is the Java language keyword
for a primitive type or void, then the Class object
representing that primitive type or void will be returned
(e.g., an ObjectStreamClass with the name
"int" will be resolved to Integer.TYPE).
Otherwise, the ClassNotFoundException will be thrown to
the caller of this method.
| |