Top Description Fields Constructors Methods
org.apache.avro.file

public Class SeekableByteArrayInput

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

A SeekableInput backed with data in a byte array.

Field Summary

Inherited from java.io.ByteArrayInputStream:
bufcountmarkpos

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public long
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.ByteArrayInputStream:
availableclosemarkmarkSupportedreadreadreadAllBytesreadNBytesresetskiptransferTo

Constructor Detail

SeekableByteArrayInputback to summary
public SeekableByteArrayInput(byte[] data)

Method Detail

lengthback to summary
public long length() throws IOException

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