Package java.io
Class FilterInputStream

Public Method read

int read()

Overrides:

Throws:

int read(byte[] buf)

Overrides:

Throws:

int read(byte[] buf, int offset, int len)

Overrides:

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

read() method:

Reads a byte of data from this input stream. This method blocks if no input is yet available.

read(byte[] buf) method:

Reads up to b.length bytes of data from this input stream into an array of bytes. This method blocks until some input is available.

Returns the total number of bytes read into the buffer. Note that this number might be smaller than buf.length if the end of the stream was reached. If there is no more data to read because the end of the stream was reached, -1 is returned.

read(byte[] buf, int offset, int len) method:

Reads up to len bytes of data from this input stream into an array of bytes at array position offset. This method blocks until some input is available.

Returns the total number of bytes read into the buffer. Note that this number might be smaller than len if the end of the stream was reached. If there is no more data to read because the end of the stream was reached, -1 is returned.