org.kuali.maven.wagon
Class TransferProgressFileInputStream
java.lang.Object
  
java.io.InputStream
      
com.amazonaws.services.s3.internal.RepeatableFileInputStream
          
org.kuali.maven.wagon.TransferProgressFileInputStream
- All Implemented Interfaces: 
 - Closeable
 
public class TransferProgressFileInputStream
- extends com.amazonaws.services.s3.internal.RepeatableFileInputStream
 
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)
 
            | 
 
| Methods inherited from class com.amazonaws.services.s3.internal.RepeatableFileInputStream | 
available, close, getFile, getWrappedInputStream, mark, markSupported, reset, skip | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TransferProgressFileInputStream
public TransferProgressFileInputStream(File file,
                                       org.kuali.maven.wagon.TransferProgress progress)
                                throws FileNotFoundException
- Throws:
 FileNotFoundException
read
public int read()
         throws IOException
- Overrides:
 read in class com.amazonaws.services.s3.internal.RepeatableFileInputStream
 
- Throws:
 IOException
 
read
public int read(byte[] b)
         throws IOException
- Overrides:
 read in class InputStream
 
- Throws:
 IOException
 
read
public int read(byte[] b,
                int off,
                int len)
         throws IOException
- Overrides:
 read in class com.amazonaws.services.s3.internal.RepeatableFileInputStream
 
- Throws:
 IOException
 
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.