| java.lang.Object java.io.InputStream java.io.ObjectInputStream com.sleepycat.bind.serial.SerialInput
SerialInput | public class SerialInput extends ObjectInputStream (Code) | | 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.
author: Mark Hayes |
SerialInput | public SerialInput(InputStream in, ClassCatalog classCatalog) throws IOException(Code) | | Creates a serial input stream.
Parameters: in - is the input stream from which compact serialized objects willbe read. Parameters: classCatalog - is the catalog containing the class descriptionsfor the serialized objects. |
SerialInput | public SerialInput(InputStream in, ClassCatalog classCatalog, ClassLoader classLoader) throws IOException(Code) | | Creates a serial input stream.
Parameters: in - is the input stream from which compact serialized objects willbe read. Parameters: classCatalog - is the catalog containing the class descriptionsfor the serialized objects. Parameters: classLoader - is the class loader to use, or null if a defaultclass loader should be used. |
Methods inherited from java.io.ObjectInputStream | public int available() throws IOException(Code)(Java Doc) public void close() throws IOException(Code)(Java Doc) public void defaultReadObject() throws IOException, ClassNotFoundException(Code)(Java Doc) protected boolean enableResolveObject(boolean enable) throws SecurityException(Code)(Java Doc) public int read() throws IOException(Code)(Java Doc) public int read(byte[] buf, int off, int len) throws IOException(Code)(Java Doc) public boolean readBoolean() throws IOException(Code)(Java Doc) public byte readByte() throws IOException(Code)(Java Doc) public char readChar() throws IOException(Code)(Java Doc) protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException(Code)(Java Doc) public double readDouble() throws IOException(Code)(Java Doc) public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException(Code)(Java Doc) public float readFloat() throws IOException(Code)(Java Doc) public void readFully(byte[] buf) throws IOException(Code)(Java Doc) public void readFully(byte[] buf, int off, int len) throws IOException(Code)(Java Doc) public int readInt() throws IOException(Code)(Java Doc) public String readLine() throws IOException(Code)(Java Doc) public long readLong() throws IOException(Code)(Java Doc) final public Object readObject() throws IOException, ClassNotFoundException(Code)(Java Doc) protected Object readObjectOverride() throws IOException, ClassNotFoundException(Code)(Java Doc) public short readShort() throws IOException(Code)(Java Doc) protected void readStreamHeader() throws IOException, StreamCorruptedException(Code)(Java Doc) public String readUTF() throws IOException(Code)(Java Doc) public Object readUnshared() throws IOException, ClassNotFoundException(Code)(Java Doc) public int readUnsignedByte() throws IOException(Code)(Java Doc) public int readUnsignedShort() throws IOException(Code)(Java Doc) public void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException(Code)(Java Doc) protected Class> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException(Code)(Java Doc) protected Object resolveObject(Object obj) throws IOException(Code)(Java Doc) protected Class> resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException(Code)(Java Doc) public int skipBytes(int len) throws IOException(Code)(Java Doc)
|
|
|