net.metanotion.util
Interface ObjectInputStream<I>

All Known Implementing Classes:
ByteChunkInputStream

public interface ObjectInputStream<I>

Similar to a java.io.InputStream, except using generics to present of a stream of type I objects.


Method Summary
 int available()
          Return how many objects are available for reading.
 void close()
          Close the stream.
 boolean isEOF()
          Determine if the stream has been closed.
 I read()
          Return the next object in the stream.
 

Method Detail

available

int available()
Return how many objects are available for reading.

Returns:
The number of objects that could be read without blocking.

read

I read()
       throws ObjectStreamClosedException
Return the next object in the stream.

Returns:
the next object in the stream.
Throws:
ObjectStreamClosedException - if the stream has been closed.

isEOF

boolean isEOF()
Determine if the stream has been closed.

Returns:
true if the stream is closed.

close

void close()
Close the stream.