org.apache.fop.configuration
Class ConfigurationReader


public class ConfigurationReader

entry class for reading configuration from file and creating a configuration class. typical use looks like that:
ConfigurationReader reader = new ConfigurationReader ("config.xml","standard"); try { reader.start(); } catch (org.apache.fop.apps.FOPException error) { reader.dumpError(error); } Once the configuration has been setup, the information can be accessed with the methods of StandardConfiguration.


Constructor Summary
ConfigurationReader(InputSource filename)
          creates a configuration reader

Method Summary
 (package private) static XMLReadercreateParser()
          creates a SAX parser, using the value of org.xml.sax.parser defaulting to org.apache.xerces.parsers.SAXParser
 voiddumpError(Exception e)
          Dumps an error
 voidsetDumpError(boolean dumpError)
          long or short error messages
 voidstart()
          intantiates parser and starts parsing of config file

Constructor Detail

ConfigurationReader

public ConfigurationReader(InputSource filename)
creates a configuration reader
Parameters:
filename - the file which contains the configuration information
Method Detail

createParser

static XMLReader createParser()
creates a SAX parser, using the value of org.xml.sax.parser defaulting to org.apache.xerces.parsers.SAXParser
Returns: the created SAX parser

dumpError

public void dumpError(Exception e)
Dumps an error

setDumpError

public void setDumpError(boolean dumpError)
long or short error messages

start

public void start()
throws org.apache.fop.apps.FOPException
intantiates parser and starts parsing of config file