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 (package private) boolean
eodReceived
protected java.io.DataInputStream
input
private static org.apache.commons.logging.Log
logger
(package private) boolean
willCloseReceived
-
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 void
close()
Buffer
read()
void
setDataStream(java.io.InputStream in)
boolean
willCloseReceived()
-
Methods inherited from class org.globus.ftp.dc.EBlockAware
setTransferContext
-
-
-
-
Method Detail
-
setDataStream
public void setDataStream(java.io.InputStream in)
- Specified by:
setDataStream
in 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:
read
in 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:
close
in interfaceDataChannelReader
- Throws:
java.io.IOException
-
-