com.ning.http.client.consumers
Class ByteBufferBodyConsumer

java.lang.Object
  extended by com.ning.http.client.consumers.ByteBufferBodyConsumer
All Implemented Interfaces:
BodyConsumer

public class ByteBufferBodyConsumer
extends Object
implements BodyConsumer


Constructor Summary
ByteBufferBodyConsumer(ByteBuffer byteBuffer)
           
 
Method Summary
 void close()
          Invoked when all the response bytes has been processed.
 void consume(ByteBuffer byteBuffer)
          Consume the received bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferBodyConsumer

public ByteBufferBodyConsumer(ByteBuffer byteBuffer)
Method Detail

consume

public void consume(ByteBuffer byteBuffer)
             throws IOException
Description copied from interface: BodyConsumer
Consume the received bytes.

Specified by:
consume in interface BodyConsumer
Parameters:
byteBuffer - a ByteBuffer represntation of the response's chunk.
Throws:
IOException

close

public void close()
           throws IOException
Description copied from interface: BodyConsumer
Invoked when all the response bytes has been processed.

Specified by:
close in interface BodyConsumer
Throws:
IOException


Copyright © 2011. All Rights Reserved.