org.kuali.maven.wagon
Class TransferProgressFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
org.kuali.maven.wagon.TransferProgressFileInputStream
- All Implemented Interfaces:
- Closeable
public class TransferProgressFileInputStream
- extends FileInputStream
An extension to the FileInputStream
that notifies a @{link TransferProgress} object as it is being read from
- Since:
- 1.1
- Author:
- Ben Hale
Method Summary |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
progress
private TransferProgress progress
TransferProgressFileInputStream
public TransferProgressFileInputStream(File file,
TransferProgress progress)
throws FileNotFoundException
- Throws:
FileNotFoundException
read
public int read()
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.