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 |
ModuleReader(boolean encrypted)
INTERNAL: Constructor that accepts whether the input is encrypted
or plain. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
encrypted
protected boolean encrypted
parser
protected XMLReader parser
ModuleReader
public ModuleReader(boolean encrypted)
- INTERNAL: Constructor that accepts whether the input is encrypted
or plain.
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 interface ModuleReaderIF
- 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
Copyright © 2000-2012 Ontopia.