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
A BufferedReader decorator that send all that is read via BufferedReader.read() to the attached ParserMonitor before returning the read int.
  • Field Details

  • Constructor Details

    • MonitorInputReader

      public MonitorInputReader(Reader reader, ParserMonitor monitor)
      Parameters:
      reader - the actual reader
      monitor - the monitor
  • Method Details

    • read

      public int read(char[] c) throws IOException
      Currently the only overridden method that sends data to the given monitor.
      Overrides:
      read in class Reader
      Throws:
      IOException