com.sleepycat.bind.serial

Class SerialInput

public class SerialInput extends ObjectInputStream

A specialized 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 ObjectStreamClassreadClassDescriptor()
protected ClassresolveClass(ObjectStreamClass desc)

Constructor Detail

SerialInput

public SerialInput(InputStream in, ClassCatalog classCatalog)
Creates a serial input stream.

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.

SerialInput

public SerialInput(InputStream in, ClassCatalog classCatalog, ClassLoader classLoader)
Creates a serial input stream.

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.

Method Detail

readClassDescriptor

protected ObjectStreamClass readClassDescriptor()

resolveClass

protected Class resolveClass(ObjectStreamClass desc)