|
||||||||||
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(ByteBuffer src)
Writes a portion of entity content to the underlying channel. |
Method Detail |
---|
int write(ByteBuffer src) throws IOException
src
- The buffer from which content is to be retrieved
IOException
- if I/O error occurs while writing contentvoid complete() throws IOException
IOException
- if I/O error occurs while writing contentboolean isCompleted()
true
if the entity has been transferred in its
entirety.
true
if all the content has been produced,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |