org.apache.fop.configuration
Class ConfigurationReader

java.lang.Object
  extended byorg.apache.fop.configuration.ConfigurationReader

public class ConfigurationReader
extends java.lang.Object

Entry class for reading configuration from file and creating a configuration class. Example of typical use:

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.

Version:
$Revision: 1.8.2.3 $

Constructor Summary
ConfigurationReader(org.xml.sax.InputSource filename)
          creates a configuration reader
 
Method Summary
static org.xml.sax.XMLReader createParser()
          creates a SAX parser
 void dumpError(java.lang.Exception e)
          Dumps an error
 void setDumpError(boolean dumpError)
          long or short error messages
 void start()
          intantiates parser and starts parsing of config file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationReader

public ConfigurationReader(org.xml.sax.InputSource filename)
creates a configuration reader

Parameters:
filename - the file which contains the configuration information
Method Detail

start

public void start()
           throws FOPException
intantiates parser and starts parsing of config file

Throws:
FOPException

createParser

public static org.xml.sax.XMLReader createParser()
                                          throws FOPException
creates a SAX parser

Returns:
the created SAX parser
Throws:
FOPException

dumpError

public void dumpError(java.lang.Exception e)
Dumps an error


setDumpError

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



Copyright © 1999-2003 Apache Software Foundation. All Rights Reserved.