Method Summary |
|
public int | available() Return the number of bytes that can be read from this ByteHolder
without blocking on an IO. |
public void | clear() Clear the bytes from the ByteHolder and place it in writing
mode. |
public int | numBytesSaved() Return the number of bytes that have been saved to this byte holder. |
public int | read() Read a byte from this ByteHolder. |
public int | read(byte b, int off, int len) Read up to 'len' bytes from this ByteHolder and store them in
an array at offset 'off'. |
public int | read(OutputStream out, int len) Read from the ByteHolder. |
public int | shiftToFront() |
public long | skip(long count) Skip over the specified number of bytes in a ByteHolder. |
public void | startReading() Place a ByteHolder in reading mode. |
public void | write(int b) Write a byte to this ByteHolder. |
public void | write(byte[] data, int offset, int len) Write len bytes of data starting at 'offset' to this ByteHolder. |
public long | write(InputStream in, long count) Write up to count bytes from an input stream to this
ByteHolder. |
public boolean | writingMode() Return true if this is in writing mode. |