|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ning.http.client.consumers.AppendableBodyConsumer
public class AppendableBodyConsumer
Constructor Summary | |
---|---|
AppendableBodyConsumer(java.lang.Appendable appendable)
|
|
AppendableBodyConsumer(java.lang.Appendable appendable,
java.lang.String encoding)
|
Method Summary | |
---|---|
void |
close()
Invoked when all the response bytes has been processed. |
void |
consume(java.nio.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 |
---|
public AppendableBodyConsumer(java.lang.Appendable appendable, java.lang.String encoding)
public AppendableBodyConsumer(java.lang.Appendable appendable)
Method Detail |
---|
public void consume(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
BodyConsumer
consume
in interface BodyConsumer
byteBuffer
- a ByteBuffer
represntation of the response's chunk.
java.io.IOException
public void close() throws java.io.IOException
BodyConsumer
close
in interface BodyConsumer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |