com.partnersoft.io.net
Class DownloadReportingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by com.partnersoft.io.CountingInputStream
              extended by com.partnersoft.io.net.DownloadReportingInputStream
All Implemented Interfaces:
java.io.Closeable

public class DownloadReportingInputStream
extends CountingInputStream

Counts and reports network downloads.

Author:
Paul Reavis Copyright 2000 Partner Software, Inc.

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DownloadReportingInputStream(java.io.InputStream innie, java.lang.String type)
           
DownloadReportingInputStream(java.io.InputStream innie, java.lang.String type, boolean verbose)
           
 
Method Summary
 void bytesWereRead(int byteCount)
          Override this to be notified of each batch of data.
 java.io.InputStream getBaseInputStream()
           
 
Methods inherited from class com.partnersoft.io.CountingInputStream
getByteCount, isVerbose, mark, read, read, read, reset, setVerbose, skip
 
Methods inherited from class java.io.FilterInputStream
available, close, markSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadReportingInputStream

public DownloadReportingInputStream(java.io.InputStream innie,
                                    java.lang.String type)

DownloadReportingInputStream

public DownloadReportingInputStream(java.io.InputStream innie,
                                    java.lang.String type,
                                    boolean verbose)
Method Detail

bytesWereRead

public void bytesWereRead(int byteCount)
Description copied from class: CountingInputStream
Override this to be notified of each batch of data.

Overrides:
bytesWereRead in class CountingInputStream

getBaseInputStream

public java.io.InputStream getBaseInputStream()