Package eu.bandm.tools.muli.utils
Class CatalogFromFile
java.lang.Object
eu.bandm.tools.muli.utils.CatalogFromFile
Utility class for reading a
CatalogByString
from an XML file.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
load
(TextInput input, CatalogByString cat, boolean eliminateNewlines, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Fill the data encoded in the text file into the catalog object.
-
Method Details
-
load
public static void load(TextInput input, CatalogByString cat, boolean eliminateNewlines, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Fill the data encoded in the text file into the catalog object. The text structure is described directly by a simple dtd. See also the user documentation- Parameters:
input
- the data source (file or reader)cat
- the target catalogeliminateNewlines
- whether newlines shall be replaced by single blanksmsg
- receives error messages when parsing
-