Package net.ontopia.topicmaps.nav2.utils
Class ModuleReader
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.utils.ModuleReader
-
- All Implemented Interfaces:
ModuleReaderIF
public class ModuleReader extends Object implements ModuleReaderIF
INTERNAL: Default implementation of the interface ModuleReaderIF
-
-
Constructor Summary
Constructors Constructor Description ModuleReader(boolean encrypted)
INTERNAL: Constructor that accepts whether the input is encrypted or plain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLReader
getXMLParser()
Map
read(InputStream source)
Method that reads a XML input stream of a module specification and creates a map with functions.
-
-
-
Field Detail
-
encrypted
protected boolean encrypted
-
parser
protected XMLReader parser
-
-
Method Detail
-
read
public Map read(InputStream source) throws IOException, SAXException
Description copied from interface:ModuleReaderIF
Method that reads a XML input stream of a module specification and creates a map with functions.- Specified by:
read
in interfaceModuleReaderIF
- Returns:
- A Map containing a String with the function name and as the associated value the FunctionIF object.
- Throws:
IOException
SAXException
-
getXMLParser
protected XMLReader getXMLParser() throws SAXException
- Throws:
SAXException
-
-