public class XWikiPatchUtils extends Object
public static String getDiff(Object[] orig, Object[] rev) throws org.suigeneris.jrcs.diff.DifferentiationFailedException
orig
- - original textrev
- - new textorg.suigeneris.jrcs.diff.DifferentiationFailedException
- if error when creating diffpublic static String getDiff(String orig, String rev) throws org.suigeneris.jrcs.diff.DifferentiationFailedException
orig
- - original textrev
- - new textorg.suigeneris.jrcs.diff.DifferentiationFailedException
- if error when creating diffpublic static void patch(List<String> orig, String diff) throws org.suigeneris.jrcs.rcs.InvalidFileFormatException, org.suigeneris.jrcs.diff.PatchFailedException
Node.patch(List, boolean)
.orig
- - text to patch, List<String> of lines.diff
- - diff to patch, Diff
formatorg.suigeneris.jrcs.rcs.InvalidFileFormatException
- if diff is incorrectorg.suigeneris.jrcs.diff.PatchFailedException
- if error in patchingCopyright © 2004–2021 XWiki. All rights reserved.