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