|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSink
Data channel uses this interface to write the incoming data. Implement it to provide your own ways of storing data. It must be thread safe; in parallel transfer mode several streams may attempt to write.
| Method Summary | |
|---|---|
void |
close()
Closes this data sink and releases any system resources associated with this sink. |
void |
write(Buffer buffer)
Writes the specified buffer to this data sink. |
| Method Detail |
|---|
void write(Buffer buffer)
throws java.io.IOException
buffer.getOffset() might
return -1 if the transfer mode used does not support
data offsets, for example stream transfer mode.
buffer - the data buffer to write.
java.io.IOException - if an I/O error occurs.
void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||