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:
Closeable
,AutoCloseable
,Readable
public class MonitorInputReader extends BufferedReader
ABufferedReader
decorator that send all that is read viaBufferedReader.read()
to the attachedParserMonitor
before returning the read int.- Author:
- redlab_b
-
-
Constructor Summary
Constructors Constructor Description MonitorInputReader(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.-
Methods inherited from class java.io.BufferedReader
close, lines, mark, markSupported, read, read, readLine, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, transferTo
-
-
-
-
Constructor Detail
-
MonitorInputReader
public MonitorInputReader(Reader reader, ParserMonitor monitor)
- Parameters:
reader
- the actual readermonitor
- the monitor
-
-
Method Detail
-
read
public int read(char[] c) throws IOException
Currently the only overridden method that sends data to the given monitor.- Overrides:
read
in classReader
- Throws:
IOException
-
-