Package org.apache.avro.util
Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
org.apache.avro.util.ByteBufferInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Utility to present
ByteBuffer
data as an InputStream
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
read()
int
read
(byte[] b, int off, int len) readBuffer
(int length) Read a buffer from the input without copying, if possible.Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
Constructor Details
-
ByteBufferInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
- See Also:
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
- See Also:
-
readBuffer
Read a buffer from the input without copying, if possible.- Throws:
IOException
-