| org.archive.io.SeekInputStream org.archive.io.BufferedSeekInputStream
BufferedSeekInputStream | public class BufferedSeekInputStream extends SeekInputStream (Code) | | Buffers data from some other SeekInputStream.
author: pjack |
Method Summary | |
public void | close() Close the stream, including the wrapped input stream. | public long | position() Returns the stream's current position. | public void | position(long p) Seeks to the given position. | public int | read() | public int | read(byte[] buf, int ofs, int len) | public int | read(byte[] buf) | public long | skip(long c) |
BufferedSeekInputStream | public BufferedSeekInputStream(SeekInputStream input, int capacity) throws IOException(Code) | | Constructor.
Parameters: input - the underlying input stream Parameters: capacity - the size of the buffer throws: IOException - if an IO occurs filling the first buffer |
close | public void close() throws IOException(Code) | | Close the stream, including the wrapped input stream.
|
position | public long position() throws IOException(Code) | | Returns the stream's current position.
the current position |
position | public void position(long p) throws IOException(Code) | | Seeks to the given position. This method avoids re-filling the buffer
if at all possible.
Parameters: p - the position to set throws: IOException - if an IO error occurs |
|
|