Package org.globus.ftp.dc
Class EBlockImageDCReader
- java.lang.Object
-
- org.globus.ftp.dc.EBlockAware
-
- org.globus.ftp.dc.EBlockImageDCReader
-
- All Implemented Interfaces:
DataChannelReader
public class EBlockImageDCReader extends EBlockAware implements DataChannelReader
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.DataInputStreaminput-
Fields inherited from class org.globus.ftp.dc.EBlockAware
context, EOD, EOF, WILL_CLOSE
-
-
Constructor Summary
Constructors Constructor Description EBlockImageDCReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Bufferread()voidsetDataStream(java.io.InputStream in)booleanwillCloseReceived()-
Methods inherited from class org.globus.ftp.dc.EBlockAware
setTransferContext
-
-
-
-
Method Detail
-
setDataStream
public void setDataStream(java.io.InputStream in)
- Specified by:
setDataStreamin interfaceDataChannelReader
-
willCloseReceived
public boolean willCloseReceived()
- Returns:
- true if at least once received the "server will close the connection" signal
-
read
public Buffer read() throws java.io.IOException
- Specified by:
readin interfaceDataChannelReader- Returns:
- Buffer of read data or null if end of data
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceDataChannelReader- Throws:
java.io.IOException
-
-