Package com.itextpdf.tool.xml.parser.io
Class MonitorInputReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- com.itextpdf.tool.xml.parser.io.MonitorInputReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class MonitorInputReader extends java.io.BufferedReader
ABufferedReader
decorator that send all that is read viaBufferedReader.read()
to the attachedParserMonitor
before returning the read int.
-
-
Field Summary
Fields Modifier and Type Field Description private ParserMonitor
monitor
-
Constructor Summary
Constructors Constructor Description MonitorInputReader(java.io.Reader reader, ParserMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read(char[] c)
Currently the only overridden method that sends data to the given monitor.
-
-
-
Field Detail
-
monitor
private final ParserMonitor monitor
-
-
Constructor Detail
-
MonitorInputReader
public MonitorInputReader(java.io.Reader reader, ParserMonitor monitor)
- Parameters:
reader
- the actual readermonitor
- the monitor
-
-