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, skip
mark, markSupported, reset
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
public SeekableFileInput(File file) throws IOException
IOException
public SeekableFileInput(FileDescriptor fd) throws IOException
IOException
public void seek(long p) throws IOException
SeekableInput
read()
.seek
in interface SeekableInput
IOException
public long tell() throws IOException
SeekableInput
read()
.tell
in interface SeekableInput
IOException
public long length() throws IOException
SeekableInput
length
in interface SeekableInput
IOException
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.