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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintread()intread(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:
 readin classInputStream- Throws:
 IOException- See Also:
 
 - 
read
- Overrides:
 readin classInputStream- Throws:
 IOException- See Also:
 
 - 
readBuffer
Read a buffer from the input without copying, if possible.- Throws:
 IOException
 
 -