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) |
readFullyavailable, mark, markSupported, resetpublic SeekableFileStream(File file) throws FileNotFoundException
FileNotFoundExceptionpublic long length()
length in class SeekableStreampublic boolean eof()
throws IOException
eof in class SeekableStreamIOExceptionpublic void seek(long position)
throws IOException
seek in class SeekableStreamIOExceptionpublic long position()
throws IOException
position in class SeekableStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class SeekableStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic String getSource()
getSource in class SeekableStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SeekableStreamIOExceptionpublic static void closeAllInstances()