org.apache.http.nio.client.methods
Class AsyncByteConsumer<T>

java.lang.Object
  extended by org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
      extended by org.apache.http.nio.client.methods.AsyncByteConsumer<T>
All Implemented Interfaces:
Closeable, org.apache.http.concurrent.Cancellable, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>

public abstract class AsyncByteConsumer<T>
extends org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>


Constructor Summary
AsyncByteConsumer()
           
AsyncByteConsumer(int bufSize)
           
 
Method Summary
protected abstract  void onByteReceived(ByteBuffer buf, org.apache.http.nio.IOControl ioctrl)
           
protected  void onContentReceived(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl)
           
protected  void releaseResources()
           
 
Methods inherited from class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer
buildResult, cancel, close, consumeContent, failed, getException, getResult, isDone, onResponseReceived, responseCompleted, responseReceived
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncByteConsumer

public AsyncByteConsumer(int bufSize)

AsyncByteConsumer

public AsyncByteConsumer()
Method Detail

onByteReceived

protected abstract void onByteReceived(ByteBuffer buf,
                                       org.apache.http.nio.IOControl ioctrl)
                                throws IOException
Throws:
IOException

onContentReceived

protected void onContentReceived(org.apache.http.nio.ContentDecoder decoder,
                                 org.apache.http.nio.IOControl ioctrl)
                          throws IOException
Specified by:
onContentReceived in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
Throws:
IOException

releaseResources

protected void releaseResources()
Specified by:
releaseResources in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.