Package helma.objectmodel.dom
Class XmlReader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
helma.objectmodel.dom.XmlReader
- All Implemented Interfaces:
XmlConstants
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
-
Field Summary
Fields inherited from interface helma.objectmodel.dom.XmlConstants
DATEFORMAT, NAMESPACE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String namespaceURI, String localName, String qName) main entry to read an xml-file.read
(InputStream in, INode helmaNode) read an InputStream with xml-content.read an character reader with xml-content.read
(InputSource in, INode helmaNode) read an InputSource with xml-content.void
startElement
(String namespaceURI, String localName, String qName, 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
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XmlReader
Creates a new XmlReader object.
-
-
Method Details
-
read
public INode read(File file, INode helmaNode) throws ParserConfigurationException, SAXException, IOException main entry to read an xml-file. -
read
public INode read(InputStream in, INode helmaNode) throws ParserConfigurationException, SAXException, IOException read an InputStream with xml-content. -
read
public INode read(Reader in, INode helmaNode) throws ParserConfigurationException, SAXException, IOException read an character reader with xml-content. -
read
public INode read(InputSource in, INode helmaNode) throws ParserConfigurationException, SAXException, IOException read an InputSource with xml-content. -
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
namespaceURI
- ...localName
- ...qName
- ...atts
- ...- Throws:
SAXException
- ...
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Parameters:
ch
- ...start
- ...length
- ...- Throws:
SAXException
- ...
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Parameters:
namespaceURI
- ...localName
- ...qName
- ...- Throws:
SAXException
- ...
-