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. |
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:
f1
- First File or filename to compare.f2
- Second File or filename to compare.
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-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on