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 java.lang.Object
implements ModuleReaderIF

INTERNAL: Default implementation of the interface ModuleReaderIF


Field Summary
protected  boolean encrypted
           
protected  org.xml.sax.XMLReader parser
           
 
Constructor Summary
ModuleReader(boolean encrypted)
          INTERNAL: Constructor that accepts whether the input is encrypted or plain.
 
Method Summary
protected  org.xml.sax.XMLReader getXMLParser()
           
 java.util.Map read(java.io.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 org.xml.sax.XMLReader parser
Constructor Detail

ModuleReader

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

Method Detail

read

public java.util.Map read(java.io.InputStream source)
                   throws java.io.IOException,
                          org.xml.sax.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:
java.io.IOException
org.xml.sax.SAXException

getXMLParser

protected org.xml.sax.XMLReader getXMLParser()
                                      throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException


Copyright © 2000-2012 Ontopia.