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.
Method Summary |
(package private) static XMLReader | createParser() creates a SAX parser, using the value of org.xml.sax.parser
defaulting to org.apache.xerces.parsers.SAXParser |
void | dumpError(Exception e) Dumps an error |
void | setDumpError(boolean dumpError) long or short error messages |
void | start() intantiates parser and starts parsing of config file |
ConfigurationReader
public ConfigurationReader(InputSource filename)
- creates a configuration reader
- Parameters:
- filename - the file which contains the configuration information
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