public MyGantryComparator(String baseFilename,String compareFilename,String linkIdFilename) throws FileNotFoundException {
  File baseFile=new File(baseFilename);
  if (!baseFile.exists() || !baseFile.canRead()) {
    throw new FileNotFoundException("Could not find " + baseFilename);
  }
 else {
    this.baseFile=baseFile;
  }
  File compareFile=new File(compareFilename);
  if (!compareFile.exists() || !compareFile.canRead()) {
    throw new FileNotFoundException("Could not find " + compareFilename);
  }
 else {
    this.compareFile=compareFile;
  }
  File linkIdFile=new File(linkIdFilename);
  if (!linkIdFile.exists() || !linkIdFile.canRead()) {
    throw new FileNotFoundException("Could not find " + linkIdFilename);
  }
 else {
    this.linkIdFile=linkIdFile;
  }
}

public MyGantryComparator ( String baseFilename , String compareFilename , String linkIdFilename ) throws FileNotFoundException { File baseFile = new File ( baseFilename ) ; if ( ! baseFile . exists ( ) || ! baseFile . canRead ( ) ) { throw new FileNotFoundException ( "Could not find " + baseFilename ) ; } else { this . baseFile = baseFile ; } File compareFile = new File ( compareFilename ) ; if ( ! compareFile . exists ( ) || ! compareFile . canRead ( ) ) { throw new FileNotFoundException ( "Could not find " + compareFilename ) ; } else { this . compareFile = compareFile ; } File linkIdFile = new File ( linkIdFilename ) ; if ( ! linkIdFile . exists ( ) || ! linkIdFile . canRead ( ) ) { throw new FileNotFoundException ( "Could not find " + linkIdFilename ) ; } else { this . linkIdFile = linkIdFile ; } }
instantiates the class with three necessary arguments . all three files are check to ensure they exist and are readable .
