org.apache.http.impl.nio.codecs
Class AbstractContentDecoder
java.lang.Object
org.apache.http.impl.nio.codecs.AbstractContentDecoder
- All Implemented Interfaces:
- ContentDecoder
- Direct Known Subclasses:
- ChunkDecoder, IdentityDecoder, LengthDelimitedDecoder
public abstract class AbstractContentDecoder
- extends java.lang.Object
- implements ContentDecoder
Method Summary |
boolean |
isCompleted()
Returns true if the entity has been received in its
entirety. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
channel
protected final java.nio.channels.ReadableByteChannel channel
buffer
protected final SessionInputBuffer buffer
metrics
protected final HttpTransportMetricsImpl metrics
completed
protected boolean completed
AbstractContentDecoder
public AbstractContentDecoder(java.nio.channels.ReadableByteChannel channel,
SessionInputBuffer buffer,
HttpTransportMetricsImpl metrics)
isCompleted
public boolean isCompleted()
- Description copied from interface:
ContentDecoder
- Returns true if the entity has been received in its
entirety.
- Specified by:
isCompleted
in interface ContentDecoder
- Returns:
- true if all the content has been consumed,
false otherwise.
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.