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() |
java.lang.String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
void |
seek(long position) |
long |
skip(long skipLength) |
readFullypublic 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 java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic void seek(long position)
throws java.io.IOException
seek in class SeekableStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class SeekableStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class SeekableStreamjava.io.IOExceptionpublic boolean eof()
throws java.io.IOException
eof in class SeekableStreamjava.io.IOExceptionpublic java.lang.String getSource()
getSource in class SeekableStreampublic long position()
throws java.io.IOException
position in class SeekableStreamjava.io.IOException