public class AppendableBodyConsumer extends Object implements BodyConsumer
Appendable customer for ByteBuffer| Constructor and Description |
|---|
AppendableBodyConsumer(Appendable appendable) |
AppendableBodyConsumer(Appendable appendable,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
consume(ByteBuffer byteBuffer)
Consume the received bytes.
|
public AppendableBodyConsumer(Appendable appendable, Charset charset)
public AppendableBodyConsumer(Appendable appendable)
public void consume(ByteBuffer byteBuffer) throws IOException
BodyConsumerconsume in interface BodyConsumerbyteBuffer - a ByteBuffer representation of the response's chunk.IOException - IO exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021. All rights reserved.