com.itextpdf.tool.xml.parser.io
Class MonitorInputReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by com.itextpdf.tool.xml.parser.io.MonitorInputReader
All Implemented Interfaces:
Closeable, 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.

Author:
redlab_b

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
MonitorInputReader(Reader reader, ParserMonitor monitor)
           
 
Method Summary
 int read(char[] c)
          Currently the only overridden method that sends data to the given monitor.
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorInputReader

public MonitorInputReader(Reader reader,
                          ParserMonitor monitor)
Parameters:
reader - the actual reader
monitor - 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 class Reader
Throws:
IOException


Copyright © 2012. All Rights Reserved.