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
-
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.avro.file.SeekableInput
read
-
Constructor Details
-
SeekableByteArrayInput
public SeekableByteArrayInput(byte[] data)
-
-
Method Details
-
length
Description copied from interface:SeekableInput
Return the length of the file.- Specified by:
length
in interfaceSeekableInput
- Throws:
IOException
-
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
-