Package org.apache.fop.hyphenation
Class SerializeHyphPattern
java.lang.Object
org.apache.fop.hyphenation.SerializeHyphPattern
Serialize 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate HyphenationTree
buildPatternFile
(File infile) static void
Entry point for ant java taskprivate boolean
Checks for existence of output file and compares dates with input and stylesheet filevoid
serializeDir
(File sourceDir, File targetDir) Compile all xml files in sourceDir, and write output hyp files in targetDirprivate void
serializeFile
(File infile, File outfile) void
setErrorDump
(boolean errorDump) Controls the amount of error information dumped.
-
Field Details
-
errorDump
private boolean errorDump
-
-
Constructor Details
-
SerializeHyphPattern
public SerializeHyphPattern()
-
-
Method Details
-
setErrorDump
public void setErrorDump(boolean errorDump) Controls the amount of error information dumped.- Parameters:
errorDump
- True if more error info should be provided
-
serializeDir
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
-
buildPatternFile
-
rebuild
Checks for existence of output file and compares dates with input and stylesheet file -
main
Entry point for ant java task- Parameters:
args
- sourceDir, targetDir
-