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, skippublic abstract long length()
public abstract long position()
throws IOException
IOExceptionpublic abstract void seek(long position)
throws IOException
IOExceptionpublic abstract int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic abstract boolean eof()
throws IOException
IOExceptionpublic abstract String getSource()
public void readFully(byte[] b)
throws IOException
b - EOFException - If EOF is reached before buffer is filledIOException