Java Globus API: Interface DataSink

org.globus.ftp
Interface DataSink

All Known Implementing Classes:
FileRandomIO, InputStreamDataSink, DataSinkStream

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()
           
 void write(Buffer buffer)
           
 

Method Detail

write

public void write(Buffer buffer)
           throws IOException

close

public void close()
           throws IOException