EBlockImageDCReader (Java Globus API)

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
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)
           
 
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

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
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface DataChannelReader
java.io.IOException