public class SeekableFileInput extends FileInputStream implements SeekableInput
FileInputStream that implements SeekableInput.| Constructor and Description |
|---|
SeekableFileInput(File file) |
SeekableFileInput(FileDescriptor fd) |
| Modifier and Type | Method and Description |
|---|---|
long |
length()
Return the length of the file.
|
void |
seek(long p)
Set the position for the next
read(). |
long |
tell()
Return the position of the next
read(). |
available, close, finalize, getChannel, getFD, read, read, read, skipmark, markSupported, resetclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic SeekableFileInput(File file) throws IOException
IOExceptionpublic SeekableFileInput(FileDescriptor fd) throws IOException
IOExceptionpublic void seek(long p)
throws IOException
SeekableInputread().seek in interface SeekableInputIOExceptionpublic long tell()
throws IOException
SeekableInputread().tell in interface SeekableInputIOExceptionpublic long length()
throws IOException
SeekableInputlength in interface SeekableInputIOExceptionCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.