abbot.tester
Class FileComparator
java.lang.Object
|
+--abbot.tester.FileComparator
- All Implemented Interfaces:
- Comparator
- public class FileComparator
- extends Object
- implements Comparator
Compare two files or filenames. Original concept contributed by A. Smith
Montebello.
- Version:
- 1.0
- Author:
- asmithmb
Method Summary |
int |
compare(Object f1,
Object f2)
Read files into streams and call byte by byte comparison method |
boolean |
equals(Object obj)
Comparators are equal if they're the same class. |
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileComparator
public FileComparator()
compare
public int compare(Object f1,
Object f2)
- Read files into streams and call byte by byte comparison method
- Specified by:
compare
in interface Comparator
- Parameters:
String
- file1String
- file2
equals
public boolean equals(Object obj)
- Comparators are equal if they're the same class.
- Specified by:
equals
in interface Comparator
- Overrides:
equals
in class Object
Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on