DataSource (Java Globus API)

org.globus.ftp
Interface DataSource

All Known Implementing Classes:
DataSourceStream, FileRandomIO

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 java.io.IOException
java.io.IOException

close

public void close()
           throws java.io.IOException
java.io.IOException