|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChunkedOutput
Interface used to enhance an output stream with a separate method for writing the last chunk of data in a message. This is useful when working with a chunking transport layer, so that the output stream knows which particular write operation is the last one in the sequence.
Method Summary | |
---|---|
void |
write(byte[] b,
int off,
int len)
Normal write from byte array. |
void |
writeFinal(byte[] b,
int off,
int len)
Write last data chunk from byte array. |
Method Detail |
---|
void write(byte[] b, int off, int len) throws java.io.IOException
writeFinal(byte[], int, int)
is an alternative to
the normal write.
b
- byte arrayoff
- starting offsetlen
- number of bytes to write
java.io.IOException
- on write errorvoid writeFinal(byte[] b, int off, int len) throws java.io.IOException
write(byte[], int, int)
method defined in this interface, or any of the
other java.io.OutputStream
methods) are executed after the
call to this method.
b
- byte arrayoff
- starting offsetlen
- number of bytes to write
java.io.IOException
- on write error
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |