| java.lang.Object com.jofti.config.ConfigFileParser
ConfigFileParser | public class ConfigFileParser (Code) | | The parser is responsible for parsing the XMl configuration file and returns a Map of IndexConfig objects (one for each index in the file).
The current implementation uses KXML as its parser (as it is small and we probably will not get any version interference with
other XML parsers).
author: Steve Woodcock (steve@jofti.com) version: 1.0
|
parseClassMapping | public IndexConfig parseClassMapping(IndexConfig config, InputStream stream) throws JoftiException(Code) | | Used to parse only the classmappings fragment of an xml file. Mot common usage is when manual configuration
is being used with no config file and a file containing only the classes is passed in.
Parameters: config - Parameters: stream - IndexConfig containing the parsed classes. throws: JoftiException - |
parseClassMapping | public IndexConfig parseClassMapping(IndexConfig config, String classFileName) throws JoftiException(Code) | | Used to parse only the classmappings fragment of an xml file. Mot common usage is when manual configuration
is being used with no config file and a file containing only the classes is passed in. Note: uses getResourceAsStream and so
file name must be on classpath.
Parameters: config - Parameters: classFileName - IndexConfig containing the parsed classes. throws: JoftiException - |
parseIndexConfig | public Map parseIndexConfig(String configFile) throws JoftiException(Code) | | Parses the config file from the file name. The method uses getResourceAsStream() so the filename must be
on the classpath.
Parameters: configFile - Map of IndexConfig objects. throws: JoftiException - |
parseIndexConfig | public Map parseIndexConfig(InputStream stream) throws JoftiException(Code) | | Parses the config file from an inputstream. The method allows calling code to load the configfile however it wants and
pass the location independent stream containing the file.
on the classpath.
Parameters: stream - Map of IndexConfig objects. throws: JoftiException - |
|
|