org.kuali.maven.wagon
Class TransferProgressFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by 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

Field Summary
private  TransferProgress progress
           
 
Constructor Summary
TransferProgressFileInputStream(File file, TransferProgress progress)
           
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
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

TransferProgressFileInputStream

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

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.