abbot.tester
Class FileComparator

java.lang.Object
  extended by 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

Constructor Summary
FileComparator()
           
 
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
 

Constructor Detail

FileComparator

public FileComparator()
Method Detail

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

SourceForge