com.sleepycat.bind.serial
public class SerialInput extends ObjectInputStream
ObjectInputStream
that gets class description
information from a ClassCatalog
. It is used by
SerialBinding
.
This class is used instead of an ObjectInputStream, which it extends, to read an object stream written by the SerialOutput class. For reading objects from a database normally one of the serial binding classes is used. SerialInput is used when an ObjectInputStream is needed along with compact storage. A ClassCatalog must be supplied, however, to stored shared class descriptions.
Constructor Summary | |
---|---|
SerialInput(InputStream in, ClassCatalog classCatalog)
Creates a serial input stream.
| |
SerialInput(InputStream in, ClassCatalog classCatalog, ClassLoader classLoader)
Creates a serial input stream.
|
Method Summary | |
---|---|
protected ObjectStreamClass | readClassDescriptor() |
protected Class | resolveClass(ObjectStreamClass desc) |
Parameters: in is the input stream from which compact serialized objects will be read. classCatalog is the catalog containing the class descriptions for the serialized objects.
Parameters: in is the input stream from which compact serialized objects will be read. classCatalog is the catalog containing the class descriptions for the serialized objects. classLoader is the class loader to use, or null if a default class loader should be used.