| java.io.ObjectInput
All known Subclasses: java.io.ObjectInputStream,
ObjectInput | public interface ObjectInput extends DataInput(Code) | | 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.
author: unascribed version: 1.26, 05/05/07 See Also: java.io.InputStream See Also: java.io.ObjectOutputStream See Also: java.io.ObjectInputStream since: JDK1.1 |
Method Summary | |
public int | available() Returns the number of bytes that can be read
without blocking. | public void | close() Closes the input stream. | public int | read() Reads a byte of data. | public int | read(byte b) Reads into an array of bytes. | public int | read(byte b, int off, int len) Reads into an array of bytes. | public Object | readObject() Read and return an object. | public long | skip(long n) Skips n bytes of input. |
available | public int available() throws IOException(Code) | | Returns the number of bytes that can be read
without blocking.
the number of available bytes. exception: IOException - If an I/O error has occurred. |
close | public void close() throws IOException(Code) | | Closes the input stream. Must be called
to release any resources associated with
the stream.
exception: IOException - If an I/O error has occurred. |
read | public int read() throws IOException(Code) | | Reads a byte of data. This method will block if no input is
available.
the byte read, or -1 if the end of thestream is reached. exception: IOException - If an I/O error has occurred. |
read | public int read(byte b) throws IOException(Code) | | Reads into an array of bytes. This method will
block until some input is available.
Parameters: b - the buffer into which the data is read the actual number of bytes read, -1 isreturned when the end of the stream is reached. exception: IOException - If an I/O error has occurred. |
read | public int read(byte b, int off, int len) throws IOException(Code) | | Reads into an array of bytes. This method will
block until some input is available.
Parameters: b - the buffer into which the data is read Parameters: off - the start offset of the data Parameters: len - the maximum number of bytes read the actual number of bytes read, -1 isreturned when the end of the stream is reached. exception: IOException - If an I/O error has occurred. |
skip | public long skip(long n) throws IOException(Code) | | Skips n bytes of input.
Parameters: n - the number of bytes to be skipped the actual number of bytes skipped. exception: IOException - If an I/O error has occurred. |
|
|