com.topologi.diffx.load
Class TextRecorder
java.lang.Object
com.topologi.diffx.load.TextRecorder
- All Implemented Interfaces:
- Recorder
public final class TextRecorder
- extends Object
- implements Recorder
Records the line events in a text.
- Version:
- 17 October 2006
- Author:
- Christophe Lauret
TextRecorder
public TextRecorder()
process
public EventSequence process(File file)
throws LoadingException,
IOException
- Runs the recorder on the specified file.
This method will count on the InputSource
to guess the correct encoding.
- Specified by:
process
in interface Recorder
- Parameters:
file
- The file to process.
- Returns:
- The recorded sequence of events.
- Throws:
LoadingException
- If thrown whilst parsing.
IOException
- Should I/O error occur.
process
public EventSequence process(String text)
throws LoadingException,
IOException
- Runs this recorder on the specified string.
- Specified by:
process
in interface Recorder
- Parameters:
text
- The text string to process.
- Returns:
- The recorded sequence of events.
- Throws:
LoadingException
- If thrown whilst parsing.
IOException
- Should I/O error occur.