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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmark(int readLimit) booleanintread()intread(byte[] b, int off, int len) voidreset()voidsetByteBuffer(ByteBuffer buf) longskip(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:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-