XCMS Toolkit

jtools
Class FileComparison

java.lang.Object
  extended by jtools.FileComparison

public class FileComparison
extends java.lang.Object

Compares the contents of two files and returns true if they are the same length and contain exactly the same data. Otherwise returns false.

Version:
1.00 - 2006/02/10
Author:
support@phillipgriffin.com

Constructor Summary
FileComparison()
          Constructor for FileComparison.
 
Method Summary
 boolean compare(java.lang.String f1, java.lang.String f2)
          Determines whether two files contain the same contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileComparison

public FileComparison()
Constructor for FileComparison.

Method Detail

compare

public boolean compare(java.lang.String f1,
                       java.lang.String f2)
                throws java.io.IOException
Determines whether two files contain the same contents.

Parameters:
f1 - a file name path string
f2 - a file name path string
Returns:
boolean true or false
Throws:
java.io.IOException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.