Package org.apache.avro.file
Class SeekableFileInput
java.lang.Object
java.io.InputStream
java.io.FileInputStream
org.apache.avro.file.SeekableFileInput
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SeekableInput
A
FileInputStream
that implements SeekableInput
.-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD, read, read, read, skip
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.avro.file.SeekableInput
read
-
Constructor Details
-
SeekableFileInput
- Throws:
IOException
-
SeekableFileInput
- Throws:
IOException
-
-
Method Details
-
seek
Description copied from interface:SeekableInput
Set the position for the nextread()
.- Specified by:
seek
in interfaceSeekableInput
- Throws:
IOException
-
tell
Description copied from interface:SeekableInput
Return the position of the nextread()
.- Specified by:
tell
in interfaceSeekableInput
- Throws:
IOException
-
length
Description copied from interface:SeekableInput
Return the length of the file.- Specified by:
length
in interfaceSeekableInput
- Throws:
IOException
-