public class OutputStreamBodyConsumer extends Object implements BodyConsumer
OutputStream
implementation for BodyConsumer
Constructor and Description |
---|
OutputStreamBodyConsumer(OutputStream outputStream) |
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 OutputStreamBodyConsumer(OutputStream outputStream)
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
BodyConsumer
close
in interface BodyConsumer
IOException
Copyright © 2014. All Rights Reserved.