Class PEFFileBatchCompare


  • public class PEFFileBatchCompare
    extends java.lang.Object
    Provides comparing of two folders with xml files for differences. Meta data in the files is ignored when comparing. A flat organization of files is assumed. Warnings are generated if stray files are found (a file with the same name cannot be found in the other folder) or if the folders contain folders or files not matching the file filter.
    Author:
    Joel HÃ¥kansson
    • Constructor Detail

      • PEFFileBatchCompare

        public PEFFileBatchCompare​(java.io.FileFilter filter,
                                   NormalizationResource nr)
        Parameters:
        path1 - a folder
        path2 - another folder
        Throws:
        java.io.FileNotFoundException
        java.lang.IllegalArgumentException - if path is not a directory
      • PEFFileBatchCompare

        public PEFFileBatchCompare​(java.io.FileFilter filter)
    • Method Detail

      • getUnbraillerTable

        public java.lang.String getUnbraillerTable()
      • setUnbraillerTable

        public void setUnbraillerTable​(java.lang.String unbraillerTable)
      • run

        public void run​(java.lang.String path1,
                        java.lang.String path2)
                 throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • getNotices

        public java.util.List<java.lang.String> getNotices()
      • getWarnings

        public java.util.List<java.lang.String> getWarnings()
      • getOk

        public java.util.List<java.lang.String> getOk()
      • checkedCount

        public int checkedCount()