public class

OutputStreamBodyConsumer

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

Class Overview

A simple OutputStream implementation for BodyConsumer

Summary

Public Constructors
OutputStreamBodyConsumer(OutputStream outputStream)
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 OutputStreamBodyConsumer (OutputStream outputStream)

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