public class ChangeDelta extends Delta
Delta,
Diff,
ChunkDeltaClass, original, revised| Constructor and Description |
|---|
ChangeDelta() |
ChangeDelta(Chunk orig,
Chunk rev) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(RevisionVisitor visitor)
Accepts a visitor.
|
void |
applyTo(java.util.List target)
Applies this delta as a patch to the given text.
|
void |
toRCSString(java.lang.StringBuffer s,
java.lang.String EOL)
Converts this delta into its RCS style string representation.
|
void |
toString(java.lang.StringBuffer s)
Converts this delta into its Unix diff style string representation.
|
void |
verify(java.util.List target)
Verifies that this delta can be used to patch the given text.
|
getOriginal, getRevised, init, newDelta, patch, toRCSStringarrayToString, arrayToString, stringToArray, stringToArraya, stringToArrayold, toStringpublic void verify(java.util.List target)
throws PatchFailedException
Deltaverify in class Deltatarget - the text to patch.PatchFailedException - if the patch cannot be applied.public void applyTo(java.util.List target)
Deltapublic void toString(java.lang.StringBuffer s)
Deltapublic void toRCSString(java.lang.StringBuffer s,
java.lang.String EOL)
DeltatoRCSString in class Deltas - a StringBuffer to which the string
representation will be appended.EOL - the string to use as line separator.public void accept(RevisionVisitor visitor)
DeltaSee the Visitor pattern in "Design Patterns" by the GOF4.
Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs