public class

AppendableBodyConsumer

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

Class Overview

An Appendable customer for ByteBuffer

Summary

Public Constructors
AppendableBodyConsumer(Appendable appendable)
AppendableBodyConsumer(Appendable appendable, String encoding)
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 AppendableBodyConsumer (Appendable appendable)

public AppendableBodyConsumer (Appendable appendable, String encoding)

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