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

java.lang.Object
  extended by org.apache.http.impl.nio.codecs.AbstractContentEncoder
All Implemented Interfaces:
ContentEncoder
Direct Known Subclasses:
ChunkEncoder, IdentityEncoder, LengthDelimitedEncoder

public abstract class AbstractContentEncoder
extends java.lang.Object
implements ContentEncoder


Field Summary
protected  boolean completed
           
 
Constructor Summary
AbstractContentEncoder()
           
 
Method Summary
protected  void assertNotCompleted()
           
 void complete()
          Terminates the content stream.
 boolean isCompleted()
          Returns true if the entity has been transferred 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.ContentEncoder
write
 

Field Detail

completed

protected boolean completed
Constructor Detail

AbstractContentEncoder

public AbstractContentEncoder()
Method Detail

isCompleted

public boolean isCompleted()
Description copied from interface: ContentEncoder
Returns true if the entity has been transferred in its entirety.

Specified by:
isCompleted in interface ContentEncoder
Returns:
true if all the content has been produced, false otherwise.

complete

public void complete()
              throws java.io.IOException
Description copied from interface: ContentEncoder
Terminates the content stream.

Specified by:
complete in interface ContentEncoder
Throws:
java.io.IOException - if I/O error occurs while writing content

assertNotCompleted

protected void assertNotCompleted()


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.