Package org.xj3d.io
Class ReportableReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.xj3d.io.ReportableReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
Listens for updates to read status on a stream.
- Version:
- $Revision: 1.3 $
- Author:
- Alan Hudson
-
Field Summary
Fields inherited from class java.io.FilterReader
in -
Constructor Summary
ConstructorsConstructorDescriptionReportableReader(boolean relative, int updateSize, ReadProgressListener listener, Reader in) Constructor. -
Method Summary
Methods inherited from class java.io.FilterReader
mark, markSupported, readyMethods inherited from class java.io.Reader
nullReader, read, transferTo
-
Constructor Details
-
ReportableReader
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 classFilterReader- Throws:
IOException
-
read
- Overrides:
readin classFilterReader- Throws:
IOException
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Overrides:
readin classFilterReader- Throws:
IOException
-
reset
- Overrides:
resetin classFilterReader- Throws:
IOException
-
skip
- Overrides:
skipin classFilterReader- Throws:
IOException
-