Method Summary |
|
abstract public InputStream | asInputStream() A
InputStream view on the data structure. |
abstract public OutputStream | asOutputStream() A
OutputStream view on the data structure. |
public void | close() Closes this random access data container and releases any system
resources associated with the stream. |
public void | flush() Force changes to be made persistent. |
public long | getLength() Returns the length of this data container. |
public long | getOffset() Returns the current offset in this data container. |
public boolean | isReadOnly() true if this is a read only data container. |
abstract public void | mark() Mark the current offset into the data in a stack like manner. |
public int | read() Reads a byte of data from this data container. |
public int | read(byte[] buffer) Reads up to buffer.length bytes of data from this data
container into an array of bytes. |
public int | read(byte[] buffer, int start, int numBytes) Reads up to len bytes of data from this data container
into an array of bytes. |
abstract public void | reset() Reset to the last position on the mark-stack. |
public void | seek(long offset) Sets the offset, measured from the beginning of the data container at
which the next read or write occurs. |
public void | seekBy(long delta) Sets the offset, measured from the current offset at which the next read
or write occurs. |
public void | setLength(long newLength) Assign the length. |
public void | write(int b) Writes the specified byte . |
public void | write(byte[] buffer) Writes b.length bytes from the specified byte array,
starting at the current offset. |
abstract public void | write(byte[] buffer, int start, int numBytes) Writes len bytes from the specified byte array starting at
start . |