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, markSupportedMethods 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-