Top Description Constructors Methods
org.apache.avro.file

public Class SeekableFileInput

extends FileInputStream
implements SeekableInput
Class Inheritance
All Implemented Interfaces
org.apache.avro.file.SeekableInput, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.File, .FileInputStream, .FileDescriptor, .IOException

A FileInputStream that implements SeekableInput.

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public long
length()

Hides java.io.FileInputStream.length.

Implements org.apache.avro.file.SeekableInput.length.

Return the length of the file.
public void
seek(long p)

Implements org.apache.avro.file.SeekableInput.seek.

Set the position for the next read().
public long
tell()

Implements org.apache.avro.file.SeekableInput.tell.

Return the position of the next read().
Inherited from java.io.FileInputStream:
availableclosegetChannelgetFDreadreadreadreadAllBytesreadNBytesskiptransferTo

Constructor Detail

SeekableFileInputback to summary
public SeekableFileInput(File file) throws IOException
SeekableFileInputback to summary
public SeekableFileInput(FileDescriptor fd) throws IOException

Method Detail

lengthback to summary
public long length() throws IOException

Hides java.io.FileInputStream.length.

Implements org.apache.avro.file.SeekableInput.length.

Doc from org.apache.avro.file.SeekableInput.length.

Return the length of the file.

Annotations
@Override
seekback to summary
public void seek(long p) throws IOException

Implements org.apache.avro.file.SeekableInput.seek.

Doc from org.apache.avro.file.SeekableInput.seek.

Set the position for the next read().

Annotations
@Override
tellback to summary
public long tell() throws IOException

Implements org.apache.avro.file.SeekableInput.tell.

Doc from org.apache.avro.file.SeekableInput.tell.

Return the position of the next read().

Annotations
@Override