Package org.openstreetmap.josm.io
Class ProgressInputStream
java.lang.Object
java.io.InputStream
org.openstreetmap.josm.io.ProgressInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Read from an other reader and increment an progress counter while on the way.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProgressInputStream(InputStream in, long size, ProgressMonitor progressMonitor) Constructs a newProgressInputStream. -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
updater
-
in
-
-
Constructor Details
-
ProgressInputStream
Constructs a newProgressInputStream.- Parameters:
in- the stream to monitor. Must not be nullsize- the total size which will be sentprogressMonitor- the monitor to report to- Since:
- 9172
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-