public class

ByteBufferBodyConsumer

extends Object
implements BodyConsumer
java.lang.Object
   ↳ com.ning.http.client.consumers.ByteBufferBodyConsumer

Class Overview

A ByteBuffer implementation of BodyConsumer

Summary

Public Constructors
ByteBufferBodyConsumer(ByteBuffer byteBuffer)
Public Methods
void close()
Invoked when all the response bytes has been processed.
void consume(ByteBuffer byteBuffer)
Consume the received bytes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.ning.http.client.BodyConsumer

Public Constructors

public ByteBufferBodyConsumer (ByteBuffer byteBuffer)

Public Methods

public void close ()

Invoked when all the response bytes has been processed.

Throws
IOException

public void consume (ByteBuffer byteBuffer)

Consume the received bytes.

Parameters
byteBuffer a ByteBuffer represntation of the response's chunk.
Throws
IOException