java.io
Interface ObjectInput

All Superinterfaces:
DataInput
All Known Implementing Classes:
ObjectInputStream

public interface ObjectInput
extends DataInput

Untamed:


Method Summary
 int available()
          Enabled: Returns the number of bytes that can be read without blocking.
 void close()
          Enabled: Closes the input stream.
 int read()
          Enabled: Reads a byte of data.
 int read(byte[] b)
          Enabled: Reads into an array of bytes.
 int read(byte[] b, int off, int len)
          Enabled: Reads into an array of bytes.
 Object readObject()
          Enabled: Read and return an object.
 long skip(long n)
          Enabled: Skips n bytes of input.
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readWholeNum, skipBytes
 

Method Detail

readObject

public Object readObject()
                  throws ClassNotFoundException,
                         IOException
Enabled: Read and return an object. The class that implements this interface defines where the object is "read" from.

Returns:
the object read from the stream
ClassNotFoundException
IOException

read

public int read()
         throws IOException
Enabled: Reads a byte of data. This method will block if no input is available.

Returns:
the byte read, or -1 if the end of the stream is reached.
IOException

read

public int read(byte[] b)
         throws IOException
Enabled: 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
Returns:
the actual number of bytes read, -1 is returned when the end of the stream is reached.
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Enabled: 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
off - the start offset of the data
len - the maximum number of bytes read
Returns:
the actual number of bytes read, -1 is returned when the end of the stream is reached.
IOException

skip

public long skip(long n)
          throws IOException
Enabled: Skips n bytes of input.

Parameters:
n - the number of bytes to be skipped
Returns:
the actual number of bytes skipped.
IOException

available

public int available()
              throws IOException
Enabled: Returns the number of bytes that can be read without blocking.

Returns:
the number of available bytes.
IOException

close

public void close()
           throws IOException
Enabled: Closes the input stream. Must be called to release any resources associated with the stream.

IOException


comments?