public abstract class SeekableStream
extends java.io.InputStream
| Constructor and Description |
|---|
SeekableStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
abstract boolean |
eof() |
abstract java.lang.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) |
public abstract long length()
public abstract long position()
throws java.io.IOException
java.io.IOExceptionpublic abstract void seek(long position)
throws java.io.IOException
java.io.IOExceptionpublic abstract int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic abstract void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic abstract boolean eof()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String getSource()
public void readFully(byte[] b)
throws java.io.IOException
b - java.io.EOFException - If EOF is reached before buffer is filledjava.io.IOException