net.ontopia.topicmaps.nav2.utils
Class ModuleReader

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.utils.ModuleReader
All Implemented Interfaces:
ModuleReaderIF

public class ModuleReader
extends Object
implements ModuleReaderIF

INTERNAL: Default implementation of the interface ModuleReaderIF


Field Summary
protected  boolean encrypted
           
protected  XMLReader parser
           
 
Constructor Summary
ModuleReader(boolean encrypted)
          INTERNAL: Constructor that accepts whether the input is encrypted or plain.
 
Method Summary
protected  XMLReader getXMLParser()
           
 Map read(InputStream source)
          Method that reads a XML input stream of a module specification and creates a map with functions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encrypted

protected boolean encrypted

parser

protected XMLReader parser
Constructor Detail

ModuleReader

public ModuleReader(boolean encrypted)
INTERNAL: Constructor that accepts whether the input is encrypted or plain.

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 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.