public class AppendableBodyConsumer extends Object implements BodyConsumer
Appendable customer for ByteBuffer| Constructor and Description |
|---|
AppendableBodyConsumer(Appendable appendable) |
AppendableBodyConsumer(Appendable appendable,
String encoding) |
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
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015. All Rights Reserved.