org.apache.http.impl.nio.codecs
Class AbstractContentDecoder

java.lang.Object
  extended byorg.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


Field Summary
protected  SessionInputBuffer buffer
           
protected  java.nio.channels.ReadableByteChannel channel
           
protected  boolean completed
           
 
Constructor Summary
AbstractContentDecoder(java.nio.channels.ReadableByteChannel channel, SessionInputBuffer buffer)
           
 
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
 
Methods inherited from interface org.apache.http.nio.ContentDecoder
read
 

Field Detail

channel

protected final java.nio.channels.ReadableByteChannel channel

buffer

protected final SessionInputBuffer buffer

completed

protected boolean completed
Constructor Detail

AbstractContentDecoder

public AbstractContentDecoder(java.nio.channels.ReadableByteChannel channel,
                              SessionInputBuffer buffer)
Method Detail

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-2007 Apache Software Foundation. All Rights Reserved.