Package org.apache.avro.file
Class SeekableByteArrayInput
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.apache.avro.file.SeekableByteArrayInput
- All Implemented Interfaces:
Closeable,AutoCloseable,SeekableInput
A
SeekableInput backed with data in a byte array.-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferToMethods inherited from class java.io.InputStream
nullInputStream, read, readNBytesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.avro.file.SeekableInput
read
-
Constructor Details
-
SeekableByteArrayInput
public SeekableByteArrayInput(byte[] data)
-
-
Method Details
-
length
Description copied from interface:SeekableInputReturn the length of the file.- Specified by:
lengthin interfaceSeekableInput- Throws:
IOException
-
seek
Description copied from interface:SeekableInputSet the position for the nextread().- Specified by:
seekin interfaceSeekableInput- Throws:
IOException
-
tell
Description copied from interface:SeekableInputReturn the position of the nextread().- Specified by:
tellin interfaceSeekableInput- Throws:
IOException
-