Class SAX2ResultHandler
java.lang.Object
org.exolab.adaptx.xslt.util.SAX2ResultHandler
- All Implemented Interfaces:
ContentHandler, DocumentHandler, LexicalHandler
public class SAX2ResultHandler
extends Object
implements ContentHandler, DocumentHandler, LexicalHandler
A SAX 1.0 and 2.0 adapter for the source tree
- Version:
- $Revision: 3953 $ $Date: 2003-10-07 10:35:23 +0200 (Tue, 07 Oct 2003) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] chars, int start, int length) Signals the start of charactersvoidcomment(char[] ch, int start, int length) Signals the start of a commentvoidendCDATA()Signals and end to CDATA sectionvoidSignals the end of the documentvoidendDTD()Signals the end of the DTD internal subsetvoidendElement(String name) DocumentHandler#endElementvoidendElement(String namespaceURI, String localName, String qName) ContentHandler#endElementvoidSignals the end of an EntityvoidendPrefixMapping(String prefix) Signals to end the namespace prefix mappingvoidignorableWhitespace(char[] chars, int start, int length) Signals the start of ignorable whitespace charactersvoidprocessingInstruction(String target, String data) Signals to recieve a processing instructionvoidsetDocumentLocator(Locator locator) Sets the document locatorvoidskippedEntity(String name) Signals that an entity was skipped by the parservoidSignals the start of a CDATA sectionvoidSignals the start of a documentvoidSignals the start of the DTD internal subsetvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) ContentHandler#startElementvoidstartElement(String name, AttributeList atts) DocumentHandler#startElementvoidstartEntity(String name) Signals the start of an EntityvoidstartPrefixMapping(String prefix, String uri) Signals to start the namespace - prefix mappingMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Constructor Details
-
SAX2ResultHandler
Creates a new SAX2ResultHandler
-
-
Method Details
-
characters
Signals the start of characters- Specified by:
charactersin interfaceContentHandler- Specified by:
charactersin interfaceDocumentHandler- Parameters:
chars- the character array containing the characters to receivestart- the index into the character array to start receiving characters atlength- the number of characters to recieve- Throws:
SAXException
-
endDocument
Signals the end of the document- Specified by:
endDocumentin interfaceContentHandler- Specified by:
endDocumentin interfaceDocumentHandler- Throws:
SAXException
-
endElement
DocumentHandler#endElement
Signals the end of an element- Specified by:
endElementin interfaceDocumentHandler- Parameters:
name- the name of the element- Throws:
SAXException
-
endElement
ContentHandler#endElement
Signals the end of an element- Specified by:
endElementin interfaceContentHandler- Parameters:
name- the name of the element- Throws:
SAXException
-
endPrefixMapping
Signals to end the namespace prefix mapping- Specified by:
endPrefixMappingin interfaceContentHandler- Parameters:
prefix- the namespace prefix- Throws:
SAXException
-
ignorableWhitespace
Signals the start of ignorable whitespace characters- Specified by:
ignorableWhitespacein interfaceContentHandler- Specified by:
ignorableWhitespacein interfaceDocumentHandler- Parameters:
chars- the character array containing the characters to receivestart- the index into the character array to start receiving characters atlength- the number of characters to recieve- Throws:
SAXException
-
processingInstruction
Signals to recieve a processing instruction- Specified by:
processingInstructionin interfaceContentHandler- Specified by:
processingInstructionin interfaceDocumentHandler- Parameters:
target- the target of the processing instructiondata- the content of the processing instruction- Throws:
SAXException
-
setDocumentLocator
Sets the document locator- Specified by:
setDocumentLocatorin interfaceContentHandler- Specified by:
setDocumentLocatorin interfaceDocumentHandler- Parameters:
locator- the Locator used by this DocumentHandler
-
skippedEntity
Signals that an entity was skipped by the parser- Specified by:
skippedEntityin interfaceContentHandler- Parameters:
name- the skipped entity's name- Throws:
SAXException
-
startDocument
Signals the start of a document- Specified by:
startDocumentin interfaceContentHandler- Specified by:
startDocumentin interfaceDocumentHandler- Throws:
SAXException
-
startElement
DocumentHandler#startElement
Signals the start of element- Specified by:
startElementin interfaceDocumentHandler- Parameters:
name- the name of the elementatts- the AttributeList containing the associated attributes for the element- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException ContentHandler#startElement
Signals the start of element- Specified by:
startElementin interfaceContentHandler- Parameters:
atts- the AttributeList containing the associated attributes for the elementname- the name of the element- Throws:
SAXException
-
startPrefixMapping
Signals to start the namespace - prefix mapping- Specified by:
startPrefixMappingin interfaceContentHandler- Parameters:
prefix- the namespace prefix to mapuri- the namespace URI- Throws:
SAXException
-
comment
Signals the start of a comment- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
Signals and end to CDATA section- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
Signals the end of the DTD internal subset- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
Signals the end of an Entity- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
Signals the start of a CDATA section- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
Signals the start of the DTD internal subset- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
Signals the start of an Entity- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-