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) |
readFullypublic SeekableFileStream(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic long length()
length in class SeekableStreampublic boolean eof()
throws java.io.IOException
eof in class SeekableStreamjava.io.IOExceptionpublic void seek(long position)
throws java.io.IOException
seek in class SeekableStreamjava.io.IOExceptionpublic long position()
throws java.io.IOException
position in class SeekableStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class SeekableStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic java.lang.String getSource()
getSource in class SeekableStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class SeekableStreamjava.io.IOExceptionpublic static void closeAllInstances()