Package com.fauna.response.wire
Class MultiByteBufferInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.fauna.response.wire.MultiByteBufferInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class MultiByteBufferInputStream extends java.io.InputStream
Joins a list of byte buffers to make them appear as a single input stream. The reset method is supported, and always resets to restart the stream at the beginning of the first buffer, although markSupported() returns false for this class.
-
-
Constructor Summary
Constructors Constructor Description MultiByteBufferInputStream(java.util.List<java.nio.ByteBuffer> initialBuffers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.util.List<java.nio.ByteBuffer> additionalBuffers)
int
read()
void
reset()
-