public class SeekableBufferedStream extends SeekableStream
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
| Constructor and Description |
|---|
SeekableBufferedStream(SeekableStream stream) |
SeekableBufferedStream(SeekableStream stream,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
eof() |
String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
void |
seek(long position) |
long |
skip(long skipLength) |
readFullyavailable, mark, markSupported, read, resetpublic static final int DEFAULT_BUFFER_SIZE
public SeekableBufferedStream(SeekableStream stream, int bufferSize)
public SeekableBufferedStream(SeekableStream stream)
public long length()
length in class SeekableStreampublic long skip(long skipLength)
throws IOException
skip in class InputStreamIOExceptionpublic void seek(long position)
throws IOException
seek in class SeekableStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class SeekableStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SeekableStreamIOExceptionpublic boolean eof()
throws IOException
eof in class SeekableStreamIOExceptionpublic String getSource()
getSource in class SeekableStreampublic long position()
throws IOException
position in class SeekableStreamIOException