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

java.lang.Object
  extended byorg.apache.http.impl.nio.codecs.AbstractContentEncoder
      extended byorg.apache.http.impl.nio.codecs.ChunkEncoder
All Implemented Interfaces:
ContentEncoder

public class ChunkEncoder
extends AbstractContentEncoder


Field Summary
 
Fields inherited from class org.apache.http.impl.nio.codecs.AbstractContentEncoder
completed
 
Constructor Summary
ChunkEncoder(SessionOutputBuffer outbuf)
           
 
Method Summary
 void complete()
          Terminates the content stream.
 java.lang.String toString()
           
 int write(java.nio.ByteBuffer src)
          Writes a portion of entity content to the underlying channel.
 
Methods inherited from class org.apache.http.impl.nio.codecs.AbstractContentEncoder
assertNotCompleted, isCompleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChunkEncoder

public ChunkEncoder(SessionOutputBuffer outbuf)
Method Detail

write

public int write(java.nio.ByteBuffer src)
Description copied from interface: ContentEncoder
Writes a portion of entity content to the underlying channel.

Parameters:
src - The buffer from which content is to be retrieved
Returns:
The number of bytes read, possibly zero

complete

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

Specified by:
complete in interface ContentEncoder
Overrides:
complete in class AbstractContentEncoder

toString

public java.lang.String toString()


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