Package org.xj3d.io
Class ReportableInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.xj3d.io.ReportableInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Listens for updates to read status on a stream.
- Version:
- $Revision: 1.3 $
- Author:
- Alan Hudson
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionReportableInputStream
(boolean relative, int updateSize, ReadProgressListener listener, InputStream in) Constructor. -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ReportableInputStream
public ReportableInputStream(boolean relative, int updateSize, ReadProgressListener listener, InputStream in) Constructor.- Parameters:
relative
- Whether the update size is relative or absolute.updateSize
- The size in bytes to issue updates. This will be approximately honored.listener
- The progress listenerin
- The input source
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-