com.topologi.diffx.load
Class TextRecorder

java.lang.Object
  extended by 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

Constructor Summary
TextRecorder()
           
 
Method Summary
 EventSequence process(File file)
          Runs the recorder on the specified file.
 EventSequence process(String text)
          Runs this recorder on the specified string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextRecorder

public TextRecorder()
Method Detail

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.