Java Globus API: Class DataSinkStream

org.globus.ftp
Class DataSinkStream

java.lang.Object
  |
  +--org.globus.ftp.DataSinkStream
All Implemented Interfaces:
DataSink

public class DataSinkStream
extends Object
implements DataSink

Reference implementation of DataSink. It can be used with non-parallel transfers. It cannot be used with Extended Block Mode because it uses implicit assumption that data arrives in correct sequence. It is not thread safe.


Field Summary
protected  boolean autoFlush
           
protected  boolean ignoreOffset
           
protected  OutputStream out
           
 
Constructor Summary
DataSinkStream(OutputStream out)
           
DataSinkStream(OutputStream out, boolean autoFlush, boolean ignoreOffset)
           
 
Method Summary
 void close()
           
 void write(Buffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected OutputStream out

autoFlush

protected boolean autoFlush

ignoreOffset

protected boolean ignoreOffset
Constructor Detail

DataSinkStream

public DataSinkStream(OutputStream out)

DataSinkStream

public DataSinkStream(OutputStream out,
                      boolean autoFlush,
                      boolean ignoreOffset)
Method Detail

write

public void write(Buffer buffer)
           throws IOException
Specified by:
write in interface DataSink

close

public void close()
           throws IOException
Specified by:
close in interface DataSink