edu.cmu.sphinx.util.props
Class SaxLoader
java.lang.Object
edu.cmu.sphinx.util.props.SaxLoader
public class SaxLoader
- extends java.lang.Object
Loads configuration from an XML file
Constructor Summary |
SaxLoader(java.net.URL url,
GlobalProperties globalProperties,
java.util.Map<java.lang.String,RawPropertyData> initRPD,
boolean replaceDuplicates)
Creates a loader that will load from the given location |
Method Summary |
java.util.Map<java.lang.String,RawPropertyData> |
load()
Loads a set of configuration data from the location |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaxLoader
public SaxLoader(java.net.URL url,
GlobalProperties globalProperties,
java.util.Map<java.lang.String,RawPropertyData> initRPD,
boolean replaceDuplicates)
- Creates a loader that will load from the given location
- Parameters:
url
- the location to loadglobalProperties
- the map of global propertiesinitRPD
- replaceDuplicates
-
load
public java.util.Map<java.lang.String,RawPropertyData> load()
throws java.io.IOException
- Loads a set of configuration data from the location
- Returns:
- a map keyed by component name containing RawPropertyData objects
- Throws:
java.io.IOException
- if an I/O or parse error occurs