Java Globus API: Interface DataSource

org.globus.ftp
Interface DataSource

All Known Implementing Classes:
FileRandomIO, OutputStreamDataSource, DataSourceStream

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()
           
 Buffer read()
           
 

Method Detail

read

public Buffer read()
            throws IOException

close

public void close()
           throws IOException