public class Diff extends Object
Constructor and Description |
---|
Diff()
Constructor for the Diff object.
|
Diff(int ins,
int del,
int rep,
int noop)
Constructor for the Diff object
|
Modifier and Type | Method and Description |
---|---|
static StringBuffer |
apply(StringBuffer orig,
String diff)
Apply the given patch string diff to the given string
orig and return the new String with the patch command
executed..
|
String |
exec(String a,
String b)
Construct a patch string that transforms a to b.
|
public Diff()
public Diff(int ins, int del, int rep, int noop)
ins
- Description of the Parameterdel
- Description of the Parameterrep
- Description of the Parameternoop
- Description of the Parameterpublic static StringBuffer apply(StringBuffer orig, String diff)
orig
- java.lang.StringBuffer Original stringdiff
- java.lang.String Patch stringCopyright © 2016 Egothor. All Rights Reserved.