org.apache.http.nio.client.methods
Class AsyncCharConsumer<T>
java.lang.Object
org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
org.apache.http.nio.client.methods.AsyncCharConsumer<T>
- All Implemented Interfaces:
- Closeable, org.apache.http.concurrent.Cancellable, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
public abstract class AsyncCharConsumer<T>
- extends org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
Method Summary |
protected abstract void |
onCharReceived(CharBuffer buf,
org.apache.http.nio.IOControl ioctrl)
|
protected void |
onContentReceived(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioctrl)
|
protected void |
onEntityEnclosed(org.apache.http.HttpEntity entity,
org.apache.http.entity.ContentType contentType)
|
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 |
AsyncCharConsumer
public AsyncCharConsumer(int bufSize)
AsyncCharConsumer
public AsyncCharConsumer()
onCharReceived
protected abstract void onCharReceived(CharBuffer buf,
org.apache.http.nio.IOControl ioctrl)
throws IOException
- Throws:
IOException
onEntityEnclosed
protected final void onEntityEnclosed(org.apache.http.HttpEntity entity,
org.apache.http.entity.ContentType contentType)
throws IOException
- Specified by:
onEntityEnclosed
in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
- Throws:
IOException
onContentReceived
protected final 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-2012 The Apache Software Foundation. All Rights Reserved.