Package com.ning.http.client.consumers
Class OutputStreamBodyConsumer
java.lang.Object
com.ning.http.client.consumers.OutputStreamBodyConsumer
- All Implemented Interfaces:
BodyConsumer,Closeable,AutoCloseable
A simple
OutputStream implementation for BodyConsumer-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconsume(ByteBuffer byteBuffer) Consume the received bytes.
-
Constructor Details
-
OutputStreamBodyConsumer
-
-
Method Details
-
consume
Description copied from interface:BodyConsumerConsume the received bytes.- Specified by:
consumein interfaceBodyConsumer- Parameters:
byteBuffer- aByteBufferrepresntation of the response's chunk.- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-