gov.nasa.pds.citool.comparator.types
Class DirToDirComparator

java.lang.Object
  extended by gov.nasa.pds.citool.comparator.types.ComparatorType
      extended by gov.nasa.pds.citool.comparator.types.DirToDirComparator

public class DirToDirComparator
extends ComparatorType

Class that enables the Catalog Ingestion Tool to do a directory-to-directory comparison of catalog files.

Author:
mcayanan

Constructor Summary
DirToDirComparator()
           
 
Method Summary
 void compare(java.net.URL source, java.net.URL target)
          Compare catalog files inside the given directories.
 
Methods inherited from class gov.nasa.pds.citool.comparator.types.ComparatorType
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirToDirComparator

public DirToDirComparator()
Method Detail

compare

public void compare(java.net.URL source,
                    java.net.URL target)
Compare catalog files inside the given directories. This method assumes that a matching file name can be found between the source and the target before performing a comparison.

Specified by:
compare in class ComparatorType
Parameters:
source - URL of the source directory.
target - URL of the target directory.


Copyright © 2005-2009 Planetary Data System. All Rights Reserved.