Package org.apache.avro.util
Class ReusableByteBufferInputStream
java.lang.Object
java.io.InputStream
org.apache.avro.util.ReusableByteBufferInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
mark
(int readLimit) boolean
int
read()
int
read
(byte[] b, int off, int len) void
reset()
void
setByteBuffer
(ByteBuffer buf) long
skip
(long n) Methods inherited from class java.io.InputStream
available, close, nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
Constructor Details
-
ReusableByteBufferInputStream
public ReusableByteBufferInputStream()
-
-
Method Details
-
setByteBuffer
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-