|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.diff.EditListWriter
|
+--com.starbase.diff.HTMLDiffWriter
|
+--com.starbase.diff.HTMLTableDiffWriter
|
+--com.starbase.diff.HTMLInterleavedDiffWriter
Writes a simple HTML page showing the differences between two text files.
| Field Summary |
| Fields inherited from class com.starbase.diff.HTMLDiffWriter |
DEFAULT_SPACES_PER_TAB |
| Constructor Summary | |
HTMLInterleavedDiffWriter(ParsedCharSequence source,
ParsedCharSequence target,
java.io.BufferedWriter output)
Deprecated. |
|
HTMLInterleavedDiffWriter(ParsedCharSequence source,
ParsedCharSequence target,
java.io.File output)
Constructs an interleaved HTMLDiffWriter, writing output to the specified file. |
|
HTMLInterleavedDiffWriter(ParsedCharSequence source,
ParsedCharSequence target,
java.io.Writer output)
Constructs an interleaved HTMLDiffWriter, writing output to the specified Writer. |
|
| Method Summary | |
static void |
diff(java.io.File source,
java.io.File target,
DiffCompare compare,
java.io.File output)
Compares two text files, and generates an HTML file describing the differences. |
static void |
diff(java.io.File source,
java.io.File target,
java.io.File output)
Compares two text files, and generates an HTML file describing the differences. |
static void |
diff(java.io.File source,
java.io.File target,
int compareFlags,
java.io.File output)
Compares two text files, and generates an HTML file describing the differences. |
| Methods inherited from class com.starbase.diff.HTMLTableDiffWriter |
deleteLines, insertLines, replaceLines, unchangedLines |
| Methods inherited from class com.starbase.diff.EditListWriter |
write |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTMLInterleavedDiffWriter(ParsedCharSequence source,
ParsedCharSequence target,
java.io.File output)
throws java.io.IOException
source - A parsed representation of the source text file.target - A parsed representation of the target text file.output - The output file to generate.ParsedCharSequence
public HTMLInterleavedDiffWriter(ParsedCharSequence source,
ParsedCharSequence target,
java.io.BufferedWriter output)
source - A parsed representation of the source text file.target - A parsed representation of the target text file.output - The output stream.ParsedCharSequence
public HTMLInterleavedDiffWriter(ParsedCharSequence source,
ParsedCharSequence target,
java.io.Writer output)
source - A parsed representation of the source text file.target - A parsed representation of the target text file.output - The output stream.ParsedCharSequence| Method Detail |
public static void diff(java.io.File source,
java.io.File target,
java.io.File output)
throws java.io.FileNotFoundException,
java.io.IOException,
DiffException
Uses a default text comparison algorithm: leading and trailing whitespace is ignored, and sequential whitespace characters within a line are treated as equivalent to a single space character.
source - The source text file.target - The target text file.output - The output file to generate.
java.io.FileNotFoundException
java.io.IOException
DiffException
public static void diff(java.io.File source,
java.io.File target,
int compareFlags,
java.io.File output)
throws java.io.FileNotFoundException,
java.io.IOException,
DiffException
source - The source text file.target - The target text file.compareFlags - Flags that define the text comparison algorithm.output - The output file to generate.
java.io.FileNotFoundException
java.io.IOException
DiffExceptionBasicCompare
public static void diff(java.io.File source,
java.io.File target,
DiffCompare compare,
java.io.File output)
throws java.io.FileNotFoundException,
java.io.IOException,
DiffException
source - The source text file.target - The target text file.compare - Text comparison algorithm.output - The output file to generate.
java.io.FileNotFoundException
java.io.IOException
DiffExceptionDiffCompare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||