org.kuali.maven.wagon
Class TransferProgressFileOutputStream
java.lang.Object
java.io.OutputStream
java.io.FileOutputStream
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
Method Summary |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
progress
private TransferProgress progress
TransferProgressFileOutputStream
public TransferProgressFileOutputStream(File file,
TransferProgress progress)
throws FileNotFoundException
- Throws:
FileNotFoundException
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.