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) |
readFully
available, mark, markSupported, read, reset
public static final int DEFAULT_BUFFER_SIZE
public SeekableBufferedStream(SeekableStream stream, int bufferSize)
public SeekableBufferedStream(SeekableStream stream)
public long length()
length
in class SeekableStream
public long skip(long skipLength) throws IOException
skip
in class InputStream
IOException
public void seek(long position) throws IOException
seek
in class SeekableStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class SeekableStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class SeekableStream
IOException
public boolean eof() throws IOException
eof
in class SeekableStream
IOException
public String getSource()
getSource
in class SeekableStream
public long position() throws IOException
position
in class SeekableStream
IOException