|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.nio.codecs.AbstractContentEncoder
org.apache.http.impl.nio.codecs.ChunkEncoder
public class ChunkEncoder
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 |
---|
public ChunkEncoder(SessionOutputBuffer outbuf)
Method Detail |
---|
public int write(java.nio.ByteBuffer src) throws java.io.IOException
ContentEncoder
src
- The buffer from which content is to be retrieved
java.io.IOException
- if I/O error occurs while writing contentpublic void complete() throws java.io.IOException
ContentEncoder
complete
in interface ContentEncoder
complete
in class AbstractContentEncoder
java.io.IOException
- if I/O error occurs while writing contentpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |