public abstract class SeekableStream extends InputStream
Constructor and Description |
---|
SeekableStream() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
abstract boolean |
eof() |
abstract String |
getSource() |
abstract long |
length() |
abstract long |
position() |
abstract int |
read(byte[] buffer,
int offset,
int length) |
void |
readFully(byte[] b)
Read enough bytes to fill the input buffer.
|
abstract void |
seek(long position) |
available, mark, markSupported, read, read, reset, skip
public abstract long length()
public abstract long position() throws IOException
IOException
public abstract void seek(long position) throws IOException
IOException
public abstract int read(byte[] buffer, int offset, int length) throws IOException
read
in class InputStream
IOException
public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public abstract boolean eof() throws IOException
IOException
public abstract String getSource()
public void readFully(byte[] b) throws IOException
b
- EOFException
- If EOF is reached before buffer is filledIOException