|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.test.util.FileComparer
public class FileComparer
Utility class to compare two files, for example to perform a diff.
Constructor Summary | |
---|---|
FileComparer(java.lang.String fileName1,
java.lang.String fileName2)
Create an instance of FileComparer with the pathnames of two files. |
Method Summary | |
---|---|
boolean |
areLinesEqual()
Perform a line-by-line comparison from the first file to the second |
static void |
main(java.lang.String[] args)
Example execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileComparer(java.lang.String fileName1, java.lang.String fileName2) throws java.io.IOException
fileName1
- pathname of file1fileName2
- pathname of file2
java.io.IOException
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
args
- pass in the two files to be compared
java.io.IOException
public boolean areLinesEqual() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |