|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.configuration.ConfigurationReader
public class ConfigurationReader
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.
Constructor Summary | |
---|---|
ConfigurationReader(InputSource filename)
creates a configuration reader |
Method Summary | |
---|---|
static XMLReader |
createParser()
creates a SAX parser |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationReader(InputSource filename)
filename
- the file which contains the configuration informationMethod Detail |
---|
public void start() throws FOPException
FOPException
public static XMLReader createParser() throws FOPException
FOPException
public void dumpError(Exception e)
public void setDumpError(boolean dumpError)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |