Package org.exolab.adaptx.xslt.util
Class SAX2ResultHandler
- java.lang.Object
-
- org.exolab.adaptx.xslt.util.SAX2ResultHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DocumentHandler,org.xml.sax.ext.LexicalHandler
public class SAX2ResultHandler extends java.lang.Object implements org.xml.sax.ContentHandler, org.xml.sax.DocumentHandler, org.xml.sax.ext.LexicalHandlerA 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 Constructor Description SAX2ResultHandler(ResultHandler handler)Creates a new SAX2ResultHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(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 sectionvoidendDocument()Signals the end of the documentvoidendDTD()Signals the end of the DTD internal subsetvoidendElement(java.lang.String name)DocumentHandler#endElementvoidendElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)ContentHandler#endElementvoidendEntity(java.lang.String name)Signals the end of an EntityvoidendPrefixMapping(java.lang.String prefix)Signals to end the namespace prefix mappingvoidignorableWhitespace(char[] chars, int start, int length)Signals the start of ignorable whitespace charactersvoidprocessingInstruction(java.lang.String target, java.lang.String data)Signals to recieve a processing instructionvoidsetDocumentLocator(org.xml.sax.Locator locator)Sets the document locatorvoidskippedEntity(java.lang.String name)Signals that an entity was skipped by the parservoidstartCDATA()Signals the start of a CDATA sectionvoidstartDocument()Signals the start of a documentvoidstartDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)Signals the start of the DTD internal subsetvoidstartElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)ContentHandler#startElementvoidstartElement(java.lang.String name, org.xml.sax.AttributeList atts)DocumentHandler#startElementvoidstartEntity(java.lang.String name)Signals the start of an EntityvoidstartPrefixMapping(java.lang.String prefix, java.lang.String uri)Signals to start the namespace - prefix mapping
-
-
-
Constructor Detail
-
SAX2ResultHandler
public SAX2ResultHandler(ResultHandler handler)
Creates a new SAX2ResultHandler
-
-
Method Detail
-
characters
public void characters(char[] chars, int start, int length) throws org.xml.sax.SAXExceptionSignals the start of characters- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Specified by:
charactersin interfaceorg.xml.sax.DocumentHandler- 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:
org.xml.sax.SAXException
-
endDocument
public void endDocument() throws org.xml.sax.SAXExceptionSignals the end of the document- Specified by:
endDocumentin interfaceorg.xml.sax.ContentHandler- Specified by:
endDocumentin interfaceorg.xml.sax.DocumentHandler- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String name) throws org.xml.sax.SAXExceptionDocumentHandler#endElement
Signals the end of an element- Specified by:
endElementin interfaceorg.xml.sax.DocumentHandler- Parameters:
name- the name of the element- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXExceptionContentHandler#endElement
Signals the end of an element- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Parameters:
name- the name of the element- Throws:
org.xml.sax.SAXException
-
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXExceptionSignals to end the namespace prefix mapping- Specified by:
endPrefixMappingin interfaceorg.xml.sax.ContentHandler- Parameters:
prefix- the namespace prefix- Throws:
org.xml.sax.SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] chars, int start, int length) throws org.xml.sax.SAXExceptionSignals the start of ignorable whitespace characters- Specified by:
ignorableWhitespacein interfaceorg.xml.sax.ContentHandler- Specified by:
ignorableWhitespacein interfaceorg.xml.sax.DocumentHandler- 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:
org.xml.sax.SAXException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXExceptionSignals to recieve a processing instruction- Specified by:
processingInstructionin interfaceorg.xml.sax.ContentHandler- Specified by:
processingInstructionin interfaceorg.xml.sax.DocumentHandler- Parameters:
target- the target of the processing instructiondata- the content of the processing instruction- Throws:
org.xml.sax.SAXException
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
Sets the document locator- Specified by:
setDocumentLocatorin interfaceorg.xml.sax.ContentHandler- Specified by:
setDocumentLocatorin interfaceorg.xml.sax.DocumentHandler- Parameters:
locator- the Locator used by this DocumentHandler
-
skippedEntity
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXExceptionSignals that an entity was skipped by the parser- Specified by:
skippedEntityin interfaceorg.xml.sax.ContentHandler- Parameters:
name- the skipped entity's name- Throws:
org.xml.sax.SAXException
-
startDocument
public void startDocument() throws org.xml.sax.SAXExceptionSignals the start of a document- Specified by:
startDocumentin interfaceorg.xml.sax.ContentHandler- Specified by:
startDocumentin interfaceorg.xml.sax.DocumentHandler- Throws:
org.xml.sax.SAXException
-
startElement
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXExceptionDocumentHandler#startElement
Signals the start of element- Specified by:
startElementin interfaceorg.xml.sax.DocumentHandler- Parameters:
name- the name of the elementatts- the AttributeList containing the associated attributes for the element- Throws:
org.xml.sax.SAXException
-
startElement
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXExceptionContentHandler#startElement
Signals the start of element- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Parameters:
name- the name of the elementatts- the AttributeList containing the associated attributes for the element- Throws:
org.xml.sax.SAXException
-
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXExceptionSignals to start the namespace - prefix mapping- Specified by:
startPrefixMappingin interfaceorg.xml.sax.ContentHandler- Parameters:
prefix- the namespace prefix to mapuri- the namespace URI- Throws:
org.xml.sax.SAXException
-
comment
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXExceptionSignals the start of a comment- Specified by:
commentin interfaceorg.xml.sax.ext.LexicalHandler- Throws:
org.xml.sax.SAXException
-
endCDATA
public void endCDATA() throws org.xml.sax.SAXExceptionSignals and end to CDATA section- Specified by:
endCDATAin interfaceorg.xml.sax.ext.LexicalHandler- Throws:
org.xml.sax.SAXException
-
endDTD
public void endDTD() throws org.xml.sax.SAXExceptionSignals the end of the DTD internal subset- Specified by:
endDTDin interfaceorg.xml.sax.ext.LexicalHandler- Throws:
org.xml.sax.SAXException
-
endEntity
public void endEntity(java.lang.String name) throws org.xml.sax.SAXExceptionSignals the end of an Entity- Specified by:
endEntityin interfaceorg.xml.sax.ext.LexicalHandler- Throws:
org.xml.sax.SAXException
-
startCDATA
public void startCDATA() throws org.xml.sax.SAXExceptionSignals the start of a CDATA section- Specified by:
startCDATAin interfaceorg.xml.sax.ext.LexicalHandler- Throws:
org.xml.sax.SAXException
-
startDTD
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXExceptionSignals the start of the DTD internal subset- Specified by:
startDTDin interfaceorg.xml.sax.ext.LexicalHandler- Throws:
org.xml.sax.SAXException
-
startEntity
public void startEntity(java.lang.String name) throws org.xml.sax.SAXExceptionSignals the start of an Entity- Specified by:
startEntityin interfaceorg.xml.sax.ext.LexicalHandler- Throws:
org.xml.sax.SAXException
-
-