Package org.globus.ftp
Class FTPClient.ByteArrayDataSink
- java.lang.Object
-
- org.globus.ftp.FTPClient.ByteArrayDataSink
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.ByteArrayOutputStreamreceived
-
Constructor Summary
Constructors Constructor Description ByteArrayDataSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this data sink and releases any system resources associated with this sink.java.io.ByteArrayOutputStreamgetData()voidwrite(Buffer buffer)Writes the specified buffer to this data sink.
-
-
-
Method Detail
-
write
public void write(Buffer buffer) throws java.io.IOException
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.
-
close
public void close() throws java.io.IOExceptionDescription copied from interface:DataSinkCloses this data sink and releases any system resources associated with this sink.
-
getData
public java.io.ByteArrayOutputStream getData()
-
-