|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alkacon.diff.Diff
public final class Diff
Calculates the difference from two given input sources.
| Method Summary | |
|---|---|
static void |
diff(java.lang.String text1,
java.lang.String text2,
I_DiffOutput output,
I_DiffConfiguration config)
Diffs two texts, outputting the result to the specified DiffOutput instance. |
static java.lang.String |
diffAsHtml(java.lang.String text1,
java.lang.String text2,
I_HtmlDiffConfiguration config)
Returns the diff of the given two input texts in HTML format. |
static void |
diffAsHtml(java.lang.String text1,
java.lang.String text2,
java.io.Writer writer,
I_HtmlDiffConfiguration config)
Diffs two texts, outputting the result as HTML to the specified writer instance. |
static java.lang.String |
diffAsText(java.lang.String text1,
java.lang.String text2,
I_TextDiffConfiguration config)
Returns the diff of the given two input texts in plain text format. |
static void |
diffAsText(java.lang.String text1,
java.lang.String text2,
java.io.Writer writer,
I_TextDiffConfiguration config)
Diffs two texts, outputting the result as plain text to the specified writer instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void diff(java.lang.String text1,
java.lang.String text2,
I_DiffOutput output,
I_DiffConfiguration config)
throws java.lang.Exception
text1 - the first text to comparetext2 - the second text to compareoutput - the result of the diff is written on this instanceconfig - the configuration to use
java.lang.Exception - the differencing itself should normally not throw exceptions, but the
methods on DiffOutput can
public static java.lang.String diffAsHtml(java.lang.String text1,
java.lang.String text2,
I_HtmlDiffConfiguration config)
throws java.lang.Exception
All lines of the input are included in the output.
text1 - the first text to comparetext2 - the second text to compareconfig - the configuration to use
java.lang.Exception - the differencing itself should normally not throw exceptions, but the
methods on DiffOutput can
public static void diffAsHtml(java.lang.String text1,
java.lang.String text2,
java.io.Writer writer,
I_HtmlDiffConfiguration config)
throws java.lang.Exception
text1 - the first text to comparetext2 - the second text to comparewriter - the result of the diff is written on this writerconfig - the configuration to use
java.lang.Exception - the differencing itself should normally not throw exceptions, but the
methods on DiffOutput can
public static java.lang.String diffAsText(java.lang.String text1,
java.lang.String text2,
I_TextDiffConfiguration config)
throws java.lang.Exception
text1 - the first text to comparetext2 - the second text to compareconfig - the configuration to use
java.lang.Exception - the differencing itself should normally not throw exceptions, but the
methods on DiffOutput can
public static void diffAsText(java.lang.String text1,
java.lang.String text2,
java.io.Writer writer,
I_TextDiffConfiguration config)
throws java.lang.Exception
text1 - the first text to comparetext2 - the second text to comparewriter - the result of the diff is written on this writerconfig - the configuration to use
java.lang.Exception - the differencing itself should normally not throw exceptions, but the
methods on DiffOutput can
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||