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