|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentEncoder
Abstract HTTP content encoder. HTTP content encoders can be used to apply the required coding transformation and write entity content to the underlying channel in small chunks.
Method Summary | |
---|---|
void |
complete()
Terminates the content stream. |
boolean |
isCompleted()
Returns true if the entity has been transferred in its entirety. |
int |
write(java.nio.ByteBuffer src)
Writes a portion of entity content to the underlying channel. |
Method Detail |
---|
int write(java.nio.ByteBuffer src) throws java.io.IOException
src
- The buffer from which content is to be retrieved
java.io.IOException
- if I/O error occurs while writing contentvoid complete() throws java.io.IOException
java.io.IOException
- if I/O error occurs while writing contentboolean isCompleted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |