org.springframework.xml.dom
Class DomContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.springframework.xml.dom.DomContentHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class DomContentHandler
- extends DefaultHandler
SAX ContentHandler that transforms callback calls to DOM Nodes.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
Node
|
Constructor Summary |
DomContentHandler(Node node)
Creates a new instance of the DomContentHandler with the given node. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, 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 |
DomContentHandler
public DomContentHandler(Node node)
- Creates a new instance of the
DomContentHandler with the given node.
- Parameters:
node - the node to publish events to
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class DefaultHandler
- Throws:
SAXException
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Specified by:
processingInstruction in interface ContentHandler- Overrides:
processingInstruction in class DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class DefaultHandler
- Throws:
SAXException
Copyright © 2005-2008 The Spring Web Services Framework. All Rights Reserved.