public class ByteBufferBodyConsumer extends Object implements BodyConsumer
ByteBuffer implementation of BodyConsumer| Constructor and Description |
|---|
ByteBufferBodyConsumer(ByteBuffer byteBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
consume(ByteBuffer byteBuffer)
Consume the received bytes.
|
public ByteBufferBodyConsumer(ByteBuffer byteBuffer)
public void consume(ByteBuffer byteBuffer) throws IOException
BodyConsumerconsume in interface BodyConsumerbyteBuffer - a ByteBuffer represntation of the response's chunk.IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017-2019 Eclipse Foundation. All Rights Reserved.