org.globus.ftp.dc
Class EBlockImageDCReader

java.lang.Object
  extended by org.globus.ftp.dc.EBlockAware
      extended by org.globus.ftp.dc.EBlockImageDCReader
All Implemented Interfaces:
DataChannelReader

public class EBlockImageDCReader
extends EBlockAware
implements DataChannelReader


Field Summary
protected  java.io.DataInputStream input
           
 
Fields inherited from class org.globus.ftp.dc.EBlockAware
context, EOD, EOF, WILL_CLOSE
 
Constructor Summary
EBlockImageDCReader()
           
 
Method Summary
 void close()
           
 Buffer read()
           
 void setDataStream(java.io.InputStream in)
           
 boolean willCloseReceived()
           
 
Methods inherited from class org.globus.ftp.dc.EBlockAware
setTransferContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected java.io.DataInputStream input
Constructor Detail

EBlockImageDCReader

public EBlockImageDCReader()
Method Detail

setDataStream

public void setDataStream(java.io.InputStream in)
Specified by:
setDataStream in interface DataChannelReader

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 interface DataChannelReader
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 interface DataChannelReader
Throws:
java.io.IOException