|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.util.FileDiff
Field Summary | |
static int |
ERROR_CODE_INT
|
static java.lang.String |
USAGE_STRING
|
Constructor Summary | |
FileDiff()
|
Method Summary | |
static int |
diff(java.io.BufferedReader fileA,
java.io.BufferedReader fileB)
Return the number of different lines in fileA and fileB |
static int |
diff(java.io.File fileA,
java.io.File fileB)
Return the number of different lines in fileA and fileB |
static int |
diff(java.io.FileReader fileA,
java.io.FileReader fileB)
Return the number of different lines in fileA and fileB |
static int |
diff(java.io.Reader fileA,
java.io.Reader fileB)
Return the number of different lines in fileA and fileB |
static int |
diff(java.lang.String fileA,
java.lang.String fileB)
Return the number of different lines in fileA and fileB |
static java.lang.String |
getLastErrorMessage()
Return last error message |
static void |
main(java.lang.String[] args)
This method can be used to pass the names of two files to be diffed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String USAGE_STRING
public static final int ERROR_CODE_INT
Constructor Detail |
public FileDiff()
Method Detail |
public static void main(java.lang.String[] args)
args
- The arguments must consist of exactly two strings,
corresponding to two filenames (including paths, if needed).public static java.lang.String getLastErrorMessage()
public static int diff(java.lang.String fileA, java.lang.String fileB)
fileA
- File to compare to fileBfileB
- File to compare to fileA
ERROR_CODE_INT
if an
error occurred, or the number of different lines if the files differpublic static int diff(java.io.File fileA, java.io.File fileB)
fileA
- File to compare to fileBfileB
- File to compare to fileA
ERROR_CODE_INT
if an
error occurred, or the number of different lines if the files differpublic static int diff(java.io.FileReader fileA, java.io.FileReader fileB)
fileA
- File to compare to fileBfileB
- File to compare to fileA
ERROR_CODE_INT
if an
error occurred, or the number of different lines if the files differpublic static int diff(java.io.Reader fileA, java.io.Reader fileB)
fileA
- File to compare to fileBfileB
- File to compare to fileA
ERROR_CODE_INT
if an
error occurred, or the number of different lines if the files differpublic static int diff(java.io.BufferedReader fileA, java.io.BufferedReader fileB)
fileA
- File to compare to fileBfileB
- File to compare to fileA
ERROR_CODE_INT
if an
error occurred, or the number of different lines if the files differ
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |