com.partnersoft.io.net
Class DownloadReportingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.partnersoft.io.CountingInputStream
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.
| Fields inherited from class java.io.FilterInputStream |
in |
| 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 |
DownloadReportingInputStream
public DownloadReportingInputStream(java.io.InputStream innie,
java.lang.String type)
DownloadReportingInputStream
public DownloadReportingInputStream(java.io.InputStream innie,
java.lang.String type,
boolean verbose)
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()