Package com.ning.http.client
Interface BodyConsumer
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
ResumableBodyConsumer
- All Known Implementing Classes:
AppendableBodyConsumer,ByteBufferBodyConsumer,FileBodyConsumer,OutputStreamBodyConsumer
A simple API to be used with the
SimpleAsyncHttpClient class in order to process response's bytes.-
Method Summary
Modifier and TypeMethodDescriptionvoidconsume(ByteBuffer byteBuffer) Consume the received bytes.
-
Method Details
-
consume
Consume the received bytes.- Parameters:
byteBuffer- aByteBufferrepresntation of the response's chunk.- Throws:
IOException
-