net.metanotion.io
Interface InputStream

All Superinterfaces:
Closeable
All Known Subinterfaces:
RandomAccess
All Known Implementing Classes:
ByteCordRandomAccess, JInputStream, JRandomAccess

public interface InputStream
extends Closeable

Methods to be implemented by a stream suitable for reading bytes.


Method Summary
 boolean atEOF()
           
 void close()
           
 byte read()
          Reads the next byte of data from the stream.
 int read(byte[] b)
           
 int read(byte[] b, int offset, int length)
           
 long skip(long n)
           
 

Method Detail

read

int read(byte[] b)

read

int read(byte[] b,
         int offset,
         int length)

read

byte read()
          throws EOFException
Reads the next byte of data from the stream. If the end of the stream has been reached, a runtime exception is thrown. This method blocks until data is available or an exception is thrown.

Returns:
Next byte in the input stream.
Throws:
EOFException

skip

long skip(long n)

atEOF

boolean atEOF()

close

void close()
Specified by:
close in interface Closeable