Method Summary |
|
public int | available() Returns the number of bytes that can be read (or skipped over) from this
input stream without blocking by the next caller of a method for this input
stream. |
public void | close() Closes this input stream and releases any system resources associated with
the stream. |
public int | getAvailableBytes() Gets the total number of bytes that can be read from this input stream. |
public ByteBuffer | getBuffer() |
public long | getPosition() Gets the current position in the underlying buffer . |
public boolean | isMarked() Checks whether a mark has been set on the input stream. |
public synchronized void | mark(int readlimit) Marks the current position in this input stream. |
public boolean | markSupported() Tests if this input stream supports the mark and
reset methods. |
public int | read() |
public int | read(byte[] b) Reads some number of bytes from the input stream and stores them into the
buffer array b .
Parameters: b - the buffer into which the data is read. |
public int | read(byte[] b, int off, int len) Reads up to len bytes of data from the input stream into an
array of bytes.
Parameters: b - the buffer into which the data is read. Parameters: off - the start offset in array b at which the data iswritten. Parameters: len - the maximum number of bytes to read. |
public synchronized void | reset() Repositions this stream to the position at the time the mark
method was last called on this input stream. |
public void | setBuffer(ByteBuffer buf) |
public long | skip(long n) Skips over and discards n bytes of data from this input stream.
Parameters: n - the number of bytes to be skipped. |