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, ready
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterReader
- Throws:
IOException
-
read
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
read
- Overrides:
read
in classReader
- Throws:
IOException
-
read
- Overrides:
read
in classFilterReader
- Throws:
IOException
-
reset
- Overrides:
reset
in classFilterReader
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterReader
- Throws:
IOException
-