Class CatalogFromFile

java.lang.Object
eu.bandm.tools.muli.utils.CatalogFromFile

public class CatalogFromFile extends Object
Utility class for reading a CatalogByString from an XML file.
  • 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 catalog
      eliminateNewlines - whether newlines shall be replaced by single blanks
      msg - receives error messages when parsing