Package org.daisy.braille.pef
Class PEFFileBatchCompare
- java.lang.Object
-
- org.daisy.braille.pef.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PEFFileBatchCompare.Diff
-
Constructor Summary
Constructors Constructor Description PEFFileBatchCompare(java.io.FileFilter filter)
PEFFileBatchCompare(java.io.FileFilter filter, NormalizationResource nr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
checkedCount()
java.util.List<PEFFileBatchCompare.Diff>
getDiffs()
java.util.List<java.lang.String>
getNotices()
java.util.List<java.lang.String>
getOk()
java.lang.String
getUnbraillerTable()
java.util.List<java.lang.String>
getWarnings()
void
run(java.lang.String path1, java.lang.String path2)
void
setUnbraillerTable(java.lang.String unbraillerTable)
-
-
-
Constructor Detail
-
PEFFileBatchCompare
public PEFFileBatchCompare(java.io.FileFilter filter, NormalizationResource nr)
- Parameters:
path1
- a folderpath2
- 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()
-
getDiffs
public java.util.List<PEFFileBatchCompare.Diff> getDiffs()
-
getOk
public java.util.List<java.lang.String> getOk()
-
checkedCount
public int checkedCount()
-
-