| java.lang.Object org.iscreen.impl.xml.XmlParser
XmlParser | public class XmlParser (Code) | | Parses XML configuration files. This is the parser for the default
XML configuration file format. It requires an instance of the
OgnlXmlServiceFactory in order to work properly. It calls back into
the factory to notify it of configuration elements. This parser
uses DOM (not SAX), though it treats the service factory more like
SAX in that it notifies it of config events.
author: Shellman, Dan |
Method Summary | |
protected Document | getDocument(InputStream stream) Constructs a DOM object that represents the stream provided. | protected InputStream | getInput(String classpathLocation) Given a "location" which is a classpath-based resource, return an
InputStream to it.
Parameters: classpathLocation - The location of the input (must be availableon the classpath). | public void | parse(String configLocation) Parses the configuration file and calls back into the provided
factory for configuration elements. |
getDocument | protected Document getDocument(InputStream stream)(Code) | | Constructs a DOM object that represents the stream provided. The Document
represents the XML of the stream.
Parameters: stream - The input stream of the XML document. Returns the Document representing the DOM of the XML. |
getInput | protected InputStream getInput(String classpathLocation)(Code) | | Given a "location" which is a classpath-based resource, return an
InputStream to it.
Parameters: classpathLocation - The location of the input (must be availableon the classpath). Returns an InputStream of the resource. |
parse | public void parse(String configLocation)(Code) | | Parses the configuration file and calls back into the provided
factory for configuration elements.
Parameters: configLocation - The classpath-based location of the config file. |
|
|