Package org.globus.ftp
Class InputStreamDataSink
- java.lang.Object
-
- org.globus.ftp.InputStreamDataSink
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
InputStreamDataSink.DataInputStream
-
Field Summary
Fields Modifier and Type Field Description protected CircularBuffer
buffers
private boolean
closed
private InputStreamDataSink.DataInputStream
in
-
Constructor Summary
Constructors Constructor Description InputStreamDataSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this data sink and releases any system resources associated with this sink.java.io.InputStream
getInputStream()
private boolean
isClosed()
private void
setClosed()
void
write(Buffer buffer)
Writes the specified buffer to this data sink.
-
-
-
Field Detail
-
buffers
protected CircularBuffer buffers
-
in
private InputStreamDataSink.DataInputStream in
-
closed
private boolean closed
-
-
Method Detail
-
write
public void write(Buffer buffer) throws java.io.IOException
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.
-
close
public void close() throws java.io.IOException
Description copied from interface:DataSink
Closes this data sink and releases any system resources associated with this sink.
-
setClosed
private void setClosed()
-
isClosed
private boolean isClosed()
-
getInputStream
public java.io.InputStream getInputStream()
-
-