org.globus.ftp.dc
Class EBlockImageDCWriter

java.lang.Object
  extended by org.globus.ftp.dc.EBlockAware
      extended by org.globus.ftp.dc.EBlockImageDCWriter
All Implemented Interfaces:
DataChannelWriter

public class EBlockImageDCWriter
extends EBlockAware
implements DataChannelWriter


Field Summary
protected  java.io.DataOutputStream output
           
 
Fields inherited from class org.globus.ftp.dc.EBlockAware
context, EOD, EOF, WILL_CLOSE
 
Constructor Summary
EBlockImageDCWriter()
           
 
Method Summary
 void close()
           
static void close(java.io.DataOutputStream myOutput)
           
 void endOfData()
           
 void setDataStream(java.io.OutputStream out)
           
 void write(Buffer buf)
           
 
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

output

protected java.io.DataOutputStream output
Constructor Detail

EBlockImageDCWriter

public EBlockImageDCWriter()
Method Detail

setDataStream

public void setDataStream(java.io.OutputStream out)
Specified by:
setDataStream in interface DataChannelWriter

write

public void write(Buffer buf)
           throws java.io.IOException
Specified by:
write in interface DataChannelWriter
Throws:
java.io.IOException

endOfData

public void endOfData()
               throws java.io.IOException
Specified by:
endOfData in interface DataChannelWriter
Throws:
java.io.IOException

close

public static void close(java.io.DataOutputStream myOutput)
                  throws java.io.IOException
Throws:
java.io.IOException

close

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