Top Description Methods
org.apache.avro.file

public Interface SeekableInput

extends Closeable
Known Direct Implementers
org.apache.avro.file.DataFileReader.SeekableInputStream, org.apache.avro.file.SeekableByteArrayInput, org.apache.avro.file.SeekableFileInput
Imports
java.io.IOException, .Closeable

An InputStream that supports seek and tell.

Method Summary

Modifier and TypeMethod and Description
public long
length()

Return the length of the file.

public int
read(byte[] b, int off, int len)

Equivalent to java.io.InputStream#read(byte[], int, int).

public void
seek(long p)

Set the position for the next read().

public long
tell()

Return the position of the next read().

Inherited from java.io.Closeable:
close

Method Detail

lengthback to summary
public long length() throws IOException

Return the length of the file.

readback to summary
public int read(byte[] b, int off, int len) throws IOException

Equivalent to java.io.InputStream#read(byte[], int, int).

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

Set the position for the next read().

tellback to summary
public long tell() throws IOException

Return the position of the next read().