RandomAccessFile
in a SeekableInputStream.
| Modifier and Type | Field and Description |
|---|---|
| protected RandomAccessFile | randomAccessFile
The RandomAccessFile that has been wrapped into a SeekableFileInputStream. |
| Access | Constructor and Description |
|---|---|
| public | SeekableFileInputStream(File file)
Creates a new seekable input stream that reads from the specified file. |
| public | SeekableFileInputStream(String name)
Creates a new seekable input stream that reads from a file with the specified name. |
| public | SeekableFileInputStream(RandomAccessFile randomAccessFile)
Creates a new seekable input stream from an existing
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. randomAccessFile..
|
| public long | length()
Implements abstract org. randomAccessFile..
|
| public long | position()
Implements abstract org. randomAccessFile..
|
| public int | |
| public int | read(byte[]
the buffer into which the data is read. buf)Overrides java. randomAccessFile..
|
| public int | read(byte[]
the buffer into which the data is read. buf, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. randomAccessFile..
|
| public void | seek(long
new read position in the stream pos)Implements abstract org. randomAccessFile..
|
| randomAccessFile | back to summary |
|---|---|
| protected RandomAccessFile randomAccessFile The RandomAccessFile that has been wrapped into a SeekableFileInputStream. | |
| SeekableFileInputStream | back to summary |
|---|---|
| public SeekableFileInputStream(File file) throws FileNotFoundException Creates a new seekable input stream that reads from the specified file. | |
| SeekableFileInputStream | back to summary |
|---|---|
| public SeekableFileInputStream(String name) throws FileNotFoundException Creates a new seekable input stream that reads from a file with the specified name. | |
| SeekableFileInputStream | back to summary |
|---|---|
| public SeekableFileInputStream(RandomAccessFile randomAccessFile) Creates a new seekable input stream from an existing
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Calls
| |
| length | back to summary |
|---|---|
| public long length() throws IOException Implements abstract org. Calls | |
| position | back to summary |
|---|---|
| public long position() throws IOException Implements abstract org. | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Calls
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf) throws IOException Overrides java. Calls
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int off, int len) throws IOException Overrides java. Calls
| |
| seek | back to summary |
|---|---|
| public void seek(long pos) throws IOException Implements abstract org. Calls
| |