Package org.daisy.braille.pef
Class PEFFileMerger
java.lang.Object
org.daisy.braille.pef.PEFFileMerger
Merges several single volume PEF-files into one. Metadata is collected from
the first file. The order of the files is determined by the file names.
Two sorting algorithms are used:
- standard, which sorts character by character in strict alphabetical order
- numeral grouping, which sorts groups of digits as numbers at the position in the string where they occur.
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
merge
(File input, OutputStream os, String identifier, PEFFileMerger.SortType sort) Merges several PEF-files into one.
-
Constructor Details
-
PEFFileMerger
public PEFFileMerger()Creates a new PEFFileMerger
-
-
Method Details
-
merge
Merges several PEF-files into one.- Parameters:
input
- input directoryos
- output fileidentifier
- identifier of the new publicationsort
- sort type- Returns:
- returns true if merge was successful, false otherwise
-