org.weborganic.ox.util
Class DiffXBasic
java.lang.Object
com.topologi.diffx.algorithm.DiffXAlgorithmBase
org.weborganic.ox.util.DiffXBasic
- All Implemented Interfaces:
- DiffXAlgorithm
public final class DiffXBasic
- extends DiffXAlgorithmBase
Performs the diff comparison using the LCS algorithm.
- Version:
- 30 October 2013
- Author:
- Christophe Lauret
Method Summary |
int |
length()
Returns the length of the longest common sequence. |
void |
process(DiffXFormatter formatter)
Writes the diff sequence using the specified formatter. |
DiffXBasic
public DiffXBasic(EventSequence seq0,
EventSequence seq1)
- Creates a new DiffXAlgorithmBase.
- Parameters:
seq0
- The first sequence to compare.seq1
- The second sequence to compare.
length
public int length()
- Returns the length of the longest common sequence.
- Returns:
- the length of the longest common sequence.
process
public void process(DiffXFormatter formatter)
throws IOException
- Writes the diff sequence using the specified formatter.
- Parameters:
formatter
- The formatter that will handle the output.
- Throws:
IOException
- If thrown by the formatter.