helma.objectmodel.dom
Class XmlDatabaseReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by helma.objectmodel.dom.XmlDatabaseReader
All Implemented Interfaces:
XmlConstants, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public final class XmlDatabaseReader
extends org.xml.sax.helpers.DefaultHandler
implements XmlConstants


Field Summary
 
Fields inherited from interface helma.objectmodel.dom.XmlConstants
DATEFORMAT, NAMESPACE
 
Constructor Summary
XmlDatabaseReader(NodeManager nmgr)
          Creates a new XmlDatabaseReader object.
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
           
 Node read(java.io.File file)
          read an InputSource with xml-content.
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDatabaseReader

public XmlDatabaseReader(NodeManager nmgr)
Creates a new XmlDatabaseReader object.

Parameters:
nmgr - ...
Method Detail

read

public Node read(java.io.File file)
          throws javax.xml.parsers.ParserConfigurationException,
                 org.xml.sax.SAXException,
                 java.io.IOException
read an InputSource with xml-content.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
namespaceURI - ...
localName - ...
qName - ...
atts - ...

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Parameters:
ch - ...
start - ...
length - ...
Throws:
org.xml.sax.SAXException - ...

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
namespaceURI - ...
localName - ...
qName - ...
Throws:
org.xml.sax.SAXException - ...


Copyright © 1998-1998-${year} Helma.org. All Rights Reserved.