org.kuali.maven.wagon
Class TransferProgressFileOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FileOutputStream
          extended by org.kuali.maven.wagon.TransferProgressFileOutputStream
All Implemented Interfaces:
Closeable, Flushable

 class TransferProgressFileOutputStream
extends FileOutputStream

An extension to the FileOutputStream that notifies a @{link TransferProgress} object as it is being written to.

Since:
1.1
Author:
Ben Hale

Field Summary
private  TransferProgress progress
           
 
Constructor Summary
TransferProgressFileOutputStream(File file, TransferProgress progress)
           
 
Method Summary
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FileOutputStream
close, finalize, getChannel, getFD
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progress

private TransferProgress progress
Constructor Detail

TransferProgressFileOutputStream

public TransferProgressFileOutputStream(File file,
                                        TransferProgress progress)
                                 throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

write

public void write(int b)
           throws IOException
Overrides:
write in class FileOutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class FileOutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FileOutputStream
Throws:
IOException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.