Method Summary |
|
public synchronized void | addArray(byte barr) Add an array to this MultiByteArrayInputStream. |
public synchronized int | available() Return the number of bytes available for reading. |
public synchronized void | clear() Reset this input stream - clear all internal data and pointers to
a fresh initialized state. |
public synchronized void | close() Close this stream. |
public synchronized void | mark(int readlimit) Set the stream's mark to the current position. |
public boolean | markSupported() Returns true, since mark() and reset() are supported. |
public synchronized int | nbRead() Read the next byte from this stream. |
public synchronized int | numArrays() Return the number of bytes registered. |
public synchronized int | read() Read the next byte from this stream. |
public synchronized int | read(byte b) Read data from this input stream into the given byte array starting
at offset 0 for b.length bytes. |
public synchronized int | read(byte b, int off, int len) Read data from this input stream into the given byte array starting
at offset 'off' for 'len' bytes. |
public synchronized void | reset() Returns the stream to the position of the previous mark(). |
public synchronized long | skip(long n) Skip n bytes in this stream; returns the number of bytes
actually skipped (which may be less than the number requested). |