Java in a Nutshell

Previous Chapter 24
The java.io Package
Next
 

24.38 java.io.ObjectInput (JDK 1.1)

This interface extends the DataInput interface and adds methods for deserializing objects and reading bytes and arrays of bytes.

public abstract interface ObjectInput extends DataInput {
    // Public Instance Methods
            public abstract int available() throws IOException;
            public abstract void close() throws IOException;
            public abstract int read() throws IOException;
            public abstract int read(byte[] b) throws IOException;
            public abstract int read(byte[] b, int off, int len) throws IOException;
            public abstract Object readObject() throws ClassNotFoundException, IOException;
            public abstract long skip(long n) throws IOException;
}

Implemented By:

ObjectInputStream

Passed To:

Externalizable.readExternal()


Previous Home Next
java.io.NotSerializableException (JDK 1.1) Book Index java.io.ObjectInputStream (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.