public class BufferedSeekInputStream extends SeekInputStream
| Constructor and Description |
|---|
BufferedSeekInputStream(SeekInputStream input,
int capacity)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream, including the wrapped input stream.
|
long |
position()
Returns the stream's current position.
|
void |
position(long p)
Seeks to the given position.
|
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int ofs,
int len) |
long |
skip(long c) |
mark, markSupported, resetavailablepublic BufferedSeekInputStream(SeekInputStream input, int capacity) throws IOException
input - the underlying input streamcapacity - the size of the bufferIOException - if an IO occurs filling the first bufferpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf,
int ofs,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long c)
throws IOException
skip in class InputStreamIOExceptionpublic long position()
throws IOException
IOExceptionpublic void position(long p)
throws IOException
p - the position to setIOException - if an IO error occurspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.