org.kuali.maven.wagon
Class TransferProgressFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.amazonaws.services.s3.internal.RepeatableFileInputStream
          extended by 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

Constructor Summary
TransferProgressFileInputStream(File file, org.kuali.maven.wagon.TransferProgress progress)
           
 
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, getWrappedInputStream, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferProgressFileInputStream

public TransferProgressFileInputStream(File file,
                                       org.kuali.maven.wagon.TransferProgress progress)
                                throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

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-2012 The Kuali Foundation. All Rights Reserved.