|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.diff.DiffCompare
com.starteam.diff.BasicCompare
public final class BasicCompare
BasicCompare is a implementation of the DiffCompare interface that can be used to compare two files with many different options. This class supports column masking (ignoring chars in a column), ignoring case and different white space ignore options. See also DiffOptions for case and whitespace options.
| Field Summary | |
|---|---|
static int |
COMPARE_EOL
Compare EOL characters when comparing two lines. |
static int |
DIFF_B_WS
A predfined flag for how Unix diff treats whitespace using the -b flag. |
static int |
DIFF_W_WS
A predfined flag for how Unix diff treats whitespace using the -w flag. |
static int |
IGNORE_CASE
Ignore case when comparing two lines. |
static int |
INTERIOR_WS_EQUIV
Treat interior whitespace as equivalent to a single space character. |
static int |
INTERIOR_WS_IGNORE
Ignore interior whitespace. |
static int |
LEADING_WS_EQUIV
Treat leading whitespace as equivalent to a single space character. |
static int |
LEADING_WS_IGNORE
Ignore leading whitespace. |
static int |
PVCS_WS
A predfined flag for how PVCS ignores whitespace using -B option. |
static int |
TRAILING_WS_EQUIV
Treat trialing whitespace as equivalent to a single space character. |
static int |
TRAILING_WS_IGNORE
Ignore trialing whitespace. |
static int |
VSS_WS
A predfined flag for how VSS, StarTeam 2.0 and WinDiff and Unix diff -w ignores whitespace. |
| Constructor Summary | |
|---|---|
BasicCompare()
Can be used for binary comparison. |
|
BasicCompare(int flags,
ColumnMask[] columnMask)
columnMask is an array of column numbers to ignore. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEADING_WS_IGNORE
public static final int LEADING_WS_EQUIV
public static final int INTERIOR_WS_IGNORE
public static final int INTERIOR_WS_EQUIV
public static final int TRAILING_WS_IGNORE
public static final int TRAILING_WS_EQUIV
public static final int COMPARE_EOL
public static final int IGNORE_CASE
public static final int PVCS_WS
public static final int VSS_WS
public static final int DIFF_W_WS
public static final int DIFF_B_WS
| Constructor Detail |
|---|
public BasicCompare(int flags,
ColumnMask[] columnMask)
flags - mask flags to applycolumnMask - an array of column maskspublic BasicCompare()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||