public class SAX2DOMEx extends Object implements ContentHandler
Modifier and Type | Field and Description |
---|---|
protected Document |
document
Document object that owns the specified node.
|
protected Stack<Node> |
nodeStack |
Constructor and Description |
---|
SAX2DOMEx()
Deprecated.
|
SAX2DOMEx(DocumentBuilderFactory f)
Creates a fresh empty DOM document and adds nodes under this document.
|
SAX2DOMEx(Node node) |
SAX2DOMEx(Node node,
boolean isConsolidate) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
protected Text |
characters(String s) |
void |
endDocument() |
void |
endElement(String namespace,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
Element |
getCurrentElement() |
Node |
getDOM() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
protected void |
namespace(Element element,
String prefix,
String uri) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String namespace,
String localName,
String qName,
Attributes attrs) |
void |
startPrefixMapping(String prefix,
String uri) |
protected final Document document
public SAX2DOMEx(Node node)
node
- Nodes will be created and added under this object.public SAX2DOMEx(Node node, boolean isConsolidate)
node
- Nodes will be created and added under this object.public SAX2DOMEx(DocumentBuilderFactory f) throws ParserConfigurationException
ParserConfigurationException
public SAX2DOMEx() throws ParserConfigurationException
ParserConfigurationException
public final Element getCurrentElement()
public Node getDOM()
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 characters(char[] ch, int start, int length)
characters
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
Copyright © 2019 JBoss by Red Hat. All rights reserved.