|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSource
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 |
---|
Buffer read() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.void close() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.long totalSize() throws java.io.IOException
java.io.IOException
- if an I/O exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |