org.openoffice.xmerge.merger
Interface MergeAlgorithm
- All Known Implementing Classes:
- DocumentMerge
- public interface MergeAlgorithm
This is the MergeAlgorithm
interface. It is an
interface so that different merge algorithms may be plugged-in
to actually merge the diffs back to an original document.
applyDifference
public void applyDifference(Iterator orgSeq,
Iterator modSeq,
Difference[] differences)
throws MergeException
- This method is to merge the difference to an
Iterator
.
The original Iterator
will be modified after the call.
- Parameters:
objSeq
- The original sequence which the difference
will be applied. It will be modified.modSeq
- The modified sequence where the difference
content will be extracted.differences
- The Difference
array.- Returns:
- An
Iterator
which is the modified original
Iterator
Sequence. Same as the first parameter. - Throws:
MergeException
- If an error occurs during the merge.
Copyright © 2002 OpenOffice.org