public class SAX2DOM extends Object implements ContentHandler, LexicalHandler, Constants
ANY, ATTRIBUTE, COMMENT, ELEMENT, EMPTYSTRING, NAMESPACE_FEATURE, PROCESSING_INSTRUCTION, ROOT, TEXT, XML_PREFIX, XMLNS_PREFIX, XMLNS_STRING, XMLNS_URI, XSLT_URI
Constructor and Description |
---|
SAX2DOM() |
SAX2DOM(Node root) |
SAX2DOM(Node root,
Node nextSibling) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length)
Lexical Handler method to create comment node in DOM tree.
|
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endElement(String namespace,
String localName,
String qName) |
void |
endEntity(String name) |
void |
endPrefixMapping(String prefix) |
Node |
getDOM() |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
This class is only used internally so this method should never
be called.
|
void |
processingInstruction(String target,
String data)
adds processing instruction node to DOM.
|
void |
setDocumentLocator(Locator locator)
This class is only used internally so this method should never
be called.
|
void |
skippedEntity(String name)
This class is only used internally so this method should never
be called.
|
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(String namespace,
String localName,
String qName,
Attributes attrs) |
void |
startEntity(String name) |
void |
startPrefixMapping(String prefix,
String uri) |
public SAX2DOM() throws ParserConfigurationException
ParserConfigurationException
public SAX2DOM(Node root, Node nextSibling) throws ParserConfigurationException
ParserConfigurationException
public SAX2DOM(Node root) throws ParserConfigurationException
ParserConfigurationException
public Node getDOM()
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void endDocument()
endDocument
in interface ContentHandler
public void startElement(String namespace, String localName, String qName, Attributes attrs)
startElement
in interface ContentHandler
public void endElement(String namespace, String localName, String qName)
endElement
in interface ContentHandler
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void comment(char[] ch, int start, int length)
comment
in interface LexicalHandler
public void startCDATA()
startCDATA
in interface LexicalHandler
public void endCDATA()
endCDATA
in interface LexicalHandler
public void startEntity(String name)
startEntity
in interface LexicalHandler
public void endDTD()
endDTD
in interface LexicalHandler
public void endEntity(String name)
endEntity
in interface LexicalHandler
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
Copyright © 2017 JBoss by Red Hat. All rights reserved.