public class AppendableBodyConsumer extends Object implements BodyConsumer
| Constructor and Description |
|---|
AppendableBodyConsumer(Appendable appendable) |
AppendableBodyConsumer(Appendable appendable,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Invoked when all the response bytes has been processed.
|
void |
consume(ByteBuffer byteBuffer)
Consume the received bytes.
|
public AppendableBodyConsumer(Appendable appendable, String encoding)
public AppendableBodyConsumer(Appendable appendable)
public void consume(ByteBuffer byteBuffer) throws IOException
BodyConsumerconsume in interface BodyConsumerbyteBuffer - a ByteBuffer represntation of the response's chunk.IOExceptionpublic void close()
throws IOException
BodyConsumerclose in interface BodyConsumerIOExceptionCopyright © 2015. All rights reserved.