|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Data channel uses this interface to read outgoing data. Implement it to provide your own ways of reading data. It must be thread safe; in parallel transfer mode several streams may attempt to read.
Method Summary | |
void |
close()
Closes this data source and releases any system resources associated with this source. |
Buffer |
read()
Reads a data buffer from this data source. |
long |
totalSize()
Optional operation. |
Method Detail |
public Buffer read() throws IOException
IOException
- if an I/O error occurs.public void close() throws IOException
IOException
- if an I/O error occurs.public long totalSize() throws IOException
IOException
- if an I/O exception occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |