Interface: java.io.ObjectInput
- public interface ObjectInput
- extends DataInput
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.
Methods
-
availabletop
public int available() throws IOExceptionReturns the number of bytes that can be read without blocking. -
closetop
public void close() throws IOExceptionCloses the input stream. Must be called to release any resources associated with the stream. -
readtop
public int read() throws IOExceptionReads a byte of data. This method will block if no input is available. -
readtop
public int read(byte[] b) throws IOExceptionReads into an array of bytes. This method will block until some input is available. -
readtop
public int read(byte[] b, int off, int len) throws IOExceptionReads into an array of bytes. This method will block until some input is available. -
readObjecttop
public Object readObject() throws ClassNotFoundException, IOExceptionRead and return an object. The class that implements this interface defines where the object is "read" from. -
skiptop
public long skip(long n) throws IOExceptionSkips n bytes of input.
