public abstract class BufferInputStreamConsumer extends AbstractInputStreamConsumer
InputStream
into a buffer.Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer
The buffer into which data is read from the stream.
|
protected int |
bufferPosition
The current position within the buffer.
|
stream
Constructor and Description |
---|
BufferInputStreamConsumer(java.io.InputStream stream,
int bufferSize)
Creates an instance with the specified stream and buffer size.
|
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
data()
Returns the data consumed from the input stream.
|
call, cancel, postProcessData, read
protected byte[] buffer
protected int bufferPosition
public BufferInputStreamConsumer(java.io.InputStream stream, int bufferSize)
stream
- stream from which to readbufferSize
- size of the buffer into which data read from the input
stream should be placedprotected java.nio.ByteBuffer data()
AbstractInputStreamConsumer
data
in class AbstractInputStreamConsumer