Package org.apache.xalan.xsltc.trax
Class SAX2DOM
java.lang.Object
org.apache.xalan.xsltc.trax.SAX2DOM
- All Implemented Interfaces:
Constants
,ContentHandler
,LexicalHandler
- Author:
- G. Todd Miller
-
Field Summary
Fields inherited from interface org.apache.xalan.xsltc.runtime.Constants
ANY, ATTRIBUTE, COMMENT, ELEMENT, EMPTYSTRING, NAMESPACE_FEATURE, PROCESSING_INSTRUCTION, ROOT, TEXT, XML_PREFIX, XMLNS_PREFIX, XMLNS_STRING, XMLNS_URI, XSLT_URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
void
endDTD()
void
endElement
(String namespace, String localName, String qName) void
void
endPrefixMapping
(String prefix) 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
void
void
void
startElement
(String namespace, String localName, String qName, Attributes attrs) void
startEntity
(String name) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SAX2DOM
- Throws:
ParserConfigurationException
-
SAX2DOM
- Throws:
ParserConfigurationException
-
SAX2DOM
- Throws:
ParserConfigurationException
-
-
Method Details
-
getDOM
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceContentHandler
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceContentHandler
-
startElement
- Specified by:
startElement
in interfaceContentHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) This class is only used internally so this method should never be called.- Specified by:
ignorableWhitespace
in interfaceContentHandler
-
processingInstruction
adds processing instruction node to DOM.- Specified by:
processingInstruction
in interfaceContentHandler
-
setDocumentLocator
This class is only used internally so this method should never be called.- Specified by:
setDocumentLocator
in interfaceContentHandler
-
skippedEntity
This class is only used internally so this method should never be called.- Specified by:
skippedEntity
in interfaceContentHandler
-
comment
public void comment(char[] ch, int start, int length) Lexical Handler method to create comment node in DOM tree.- Specified by:
comment
in interfaceLexicalHandler
-
startCDATA
public void startCDATA()- Specified by:
startCDATA
in interfaceLexicalHandler
-
endCDATA
public void endCDATA()- Specified by:
endCDATA
in interfaceLexicalHandler
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
-
endDTD
public void endDTD()- Specified by:
endDTD
in interfaceLexicalHandler
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-