com.rapid_i.deployment.update.client
Class ProgressReportingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.rapid_i.deployment.update.client.ProgressReportingInputStream
All Implemented Interfaces:
java.io.Closeable

public class ProgressReportingInputStream
extends java.io.InputStream

Stream reporting the amount of read bytes to ProgressListener

Author:
Simon Fischer

Constructor Summary
ProgressReportingInputStream(java.io.InputStream in, ProgressListener listener, int minProgress, int maxProgress, int streamLength)
          Deprecated. Use ProgressReportingInputStream(InputStream, ProgressListener, int, int, long) instead
ProgressReportingInputStream(java.io.InputStream in, ProgressListener listener, int minProgress, int maxProgress, long streamLength)
           
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressReportingInputStream

@Deprecated
public ProgressReportingInputStream(java.io.InputStream in,
                                               ProgressListener listener,
                                               int minProgress,
                                               int maxProgress,
                                               int streamLength)
Deprecated. Use ProgressReportingInputStream(InputStream, ProgressListener, int, int, long) instead


ProgressReportingInputStream

public ProgressReportingInputStream(java.io.InputStream in,
                                    ProgressListener listener,
                                    int minProgress,
                                    int maxProgress,
                                    long streamLength)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException


Copyright © 2001-2009 by Rapid-I