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
BodyConsumer
consume
in interface BodyConsumer
byteBuffer
- a ByteBuffer
represntation of the response's chunk.IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2016. All Rights Reserved.