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) |
readFully
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 java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public void seek(long position) throws java.io.IOException
seek
in class SeekableStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class SeekableStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class SeekableStream
java.io.IOException
public boolean eof() throws java.io.IOException
eof
in class SeekableStream
java.io.IOException
public java.lang.String getSource()
getSource
in class SeekableStream
public long position() throws java.io.IOException
position
in class SeekableStream
java.io.IOException