Class DataSinkStream
java.lang.Object
org.globus.ftp.DataSinkStream
- All Implemented Interfaces:
DataSink
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected longprotected OutputStream -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
out
-
autoFlush
protected boolean autoFlush -
ignoreOffset
protected boolean ignoreOffset -
offset
protected long offset
-
-
Constructor Details
-
DataSinkStream
-
DataSinkStream
-
-
Method Details
-
write
Description copied from interface:DataSinkWrites the specified buffer to this data sink.
Note:buffer.getOffset()might return -1 if the transfer mode used does not support data offsets, for example stream transfer mode.- Specified by:
writein interfaceDataSink- Parameters:
buffer- the data buffer to write.- Throws:
IOException- if an I/O error occurs.
-
close
Description copied from interface:DataSinkCloses this data sink and releases any system resources associated with this sink.- Specified by:
closein interfaceDataSink- Throws:
IOException- if an I/O error occurs.
-