DataSinkStream (Java Globus API)
org.globus.ftp
Class DataSinkStream
java.lang.Object
|
+--org.globus.ftp.DataSinkStream
All Implemented Interfaces: DataSink
public class DataSinkStream extends java.lang.Objectimplements 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.
Constructor Summary
DataSinkStream (java.io.OutputStream out)
DataSinkStream (java.io.OutputStream out,
boolean autoFlush,
boolean ignoreOffset)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
out
protected java.io.OutputStream out
autoFlush
protected boolean autoFlush
ignoreOffset
protected boolean ignoreOffset
DataSinkStream
public DataSinkStream (java.io.OutputStream out)
DataSinkStream
public DataSinkStream (java.io.OutputStream out,
boolean autoFlush,
boolean ignoreOffset)
write
public void write (Buffer buffer)
throws java.io.IOException
Specified by: write in interface DataSink
java.io.IOException
close
public void close ()
throws java.io.IOException
Specified by: close in interface DataSink
java.io.IOException