| org.archive.io.SeekInputStream org.archive.io.ArraySeekInputStream
ArraySeekInputStream | public class ArraySeekInputStream extends SeekInputStream (Code) | | A repositionable stream backed by an array.
author: pjack |
Method Summary | |
public long | position() Returns the position of the stream. | public void | position(long p) Repositions the stream. | public int | read() | public int | read(byte[] buf, int ofs, int len) | public int | read(byte[] buf) |
ArraySeekInputStream | public ArraySeekInputStream(byte[] array)(Code) | | Constructor. Note that changes to the given array will be reflected
in the stream.
Parameters: array - The array to read bytes from. |
position | public long position()(Code) | | Returns the position of the stream.
|
position | public void position(long p) throws IOException(Code) | | Repositions the stream.
Parameters: p - the new position for the stream throws: IOException - if the given position is out of bounds |
read | public int read(byte[] buf, int ofs, int len)(Code) | | |
read | public int read(byte[] buf)(Code) | | |
|
|