public class SeekableFileStream extends SeekableStream
Constructor and Description |
---|
SeekableFileStream(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
closeAllInstances() |
boolean |
eof() |
java.lang.String |
getSource() |
long |
length() |
long |
position() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] buffer,
int offset,
int length) |
void |
seek(long position) |
long |
skip(long n) |
readFully
public SeekableFileStream(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public long length()
length
in class SeekableStream
public boolean eof() throws java.io.IOException
eof
in class SeekableStream
java.io.IOException
public void seek(long position) throws java.io.IOException
seek
in class SeekableStream
java.io.IOException
public long position() throws java.io.IOException
position
in class SeekableStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
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 int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public java.lang.String getSource()
getSource
in class SeekableStream
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 static void closeAllInstances()