Package org.globus.ftp
Class InputStreamDataSink
java.lang.Object
org.globus.ftp.InputStreamDataSink
- All Implemented Interfaces:
DataSink
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this data sink and releases any system resources associated with this sink.void
Writes the specified buffer to this data sink.
-
Field Details
-
buffers
-
-
Constructor Details
-
InputStreamDataSink
public InputStreamDataSink()
-
-
Method Details
-
write
Description copied from interface:DataSink
Writes 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:
write
in interfaceDataSink
- Parameters:
buffer
- the data buffer to write.- Throws:
IOException
- if an I/O error occurs.
-
close
Description copied from interface:DataSink
Closes this data sink and releases any system resources associated with this sink.- Specified by:
close
in interfaceDataSink
- Throws:
IOException
- if an I/O error occurs.
-
getInputStream
-