Home » openjdk-7 » java » io » [javadoc | source]
java.io
public interface: ObjectInput [javadoc | source]

All Implemented Interfaces:
    AutoCloseable, DataInput

All Known Implementing Classes:
    ObjectInputStreamWithLoader, ObjectInputStreamWithLoader, MLetObjectInputStream, CustomizedObjectInputStream, extObjectInputStream, MarshalledObjectInputStream, ObjectInputStream

ObjectInput extends the DataInput interface to include the reading of objects. DataInput includes methods for the input of primitive types, ObjectInput extends that interface to include objects, arrays, and Strings.
Method from java.io.ObjectInput Summary:
available,   close,   read,   read,   read,   readObject,   skip
Method from java.io.ObjectInput Detail:
 public int available() throws IOException
    Returns the number of bytes that can be read without blocking.
 public  void close() throws IOException
    Closes the input stream. Must be called to release any resources associated with the stream.
 public int read() throws IOException
    Reads a byte of data. This method will block if no input is available.
 public int read(byte[] b) throws IOException
    Reads into an array of bytes. This method will block until some input is available.
 public int read(byte[] b,
    int off,
    int len) throws IOException
    Reads into an array of bytes. This method will block until some input is available.
 public Object readObject() throws ClassNotFoundException, IOException
    Read and return an object. The class that implements this interface defines where the object is "read" from.
 public long skip(long n) throws IOException
    Skips n bytes of input.