Package org.apache.fop.hyphenation
Class SerializeHyphPattern
- java.lang.Object
-
- org.apache.fop.hyphenation.SerializeHyphPattern
-
public class SerializeHyphPattern extends java.lang.ObjectSerialize hyphenation patterns.
For all xml files in the source directory a pattern file is built in the target directory.
This class may be called from the ant build file in a java task.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanerrorDump
-
Constructor Summary
Constructors Constructor Description SerializeHyphPattern()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private HyphenationTreebuildPatternFile(java.io.File infile)static voidmain(java.lang.String[] args)Entry point for ant java taskprivate booleanrebuild(java.io.File infile, java.io.File outfile)Checks for existence of output file and compares dates with input and stylesheet filevoidserializeDir(java.io.File sourceDir, java.io.File targetDir)Compile all xml files in sourceDir, and write output hyp files in targetDirprivate voidserializeFile(java.io.File infile, java.io.File outfile)voidsetErrorDump(boolean errorDump)Controls the amount of error information dumped.
-
-
-
Method Detail
-
setErrorDump
public void setErrorDump(boolean errorDump)
Controls the amount of error information dumped.- Parameters:
errorDump- True if more error info should be provided
-
serializeDir
public void serializeDir(java.io.File sourceDir, java.io.File targetDir)Compile all xml files in sourceDir, and write output hyp files in targetDir- Parameters:
sourceDir- Directory with pattern xml filestargetDir- Directory to which compiled pattern hyp files should be written
-
serializeFile
private void serializeFile(java.io.File infile, java.io.File outfile)
-
buildPatternFile
private HyphenationTree buildPatternFile(java.io.File infile)
-
rebuild
private boolean rebuild(java.io.File infile, java.io.File outfile)Checks for existence of output file and compares dates with input and stylesheet file
-
main
public static void main(java.lang.String[] args)
Entry point for ant java task- Parameters:
args- sourceDir, targetDir
-
-