org.exolab.adaptx.xslt.util

Class SAX2ResultHandler

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 04:35:23 -0400 (Tue, 07 Oct 2003) $

Author: Keith Visco

Constructor Summary
SAX2ResultHandler(ResultHandler handler)
Creates a new SAX2ResultHandler
Method Summary
voidcharacters(char[] chars, int start, int length)
Signals the start of characters
voidcomment(char[] ch, int start, int length)
Signals the start of a comment
voidendCDATA()
Signals and end to CDATA section
voidendDocument()
Signals the end of the document
voidendDTD()
Signals the end of the DTD internal subset
voidendElement(String name)

DocumentHandler#endElement

Signals the end of an element
voidendElement(String namespaceURI, String localName, String qName)

ContentHandler#endElement

Signals the end of an element
voidendEntity(String name)
Signals the end of an Entity
voidendPrefixMapping(String prefix)
Signals to end the namespace prefix mapping
voidignorableWhitespace(char[] chars, int start, int length)
Signals the start of ignorable whitespace characters
voidprocessingInstruction(String target, String data)
Signals to recieve a processing instruction
voidsetDocumentLocator(Locator locator)
Sets the document locator
voidskippedEntity(String name)
Signals that an entity was skipped by the parser
voidstartCDATA()
Signals the start of a CDATA section
voidstartDocument()
Signals the start of a document
voidstartDTD(String name, String publicId, String systemId)
Signals the start of the DTD internal subset
voidstartElement(String name, AttributeList atts)

DocumentHandler#startElement

Signals the start of element
voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)

ContentHandler#startElement

Signals the start of element
voidstartEntity(String name)
Signals the start of an Entity
voidstartPrefixMapping(String prefix, 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)
Signals the start of characters

Parameters: chars the character array containing the characters to receive start the index into the character array to start receiving characters at length the number of characters to recieve

comment

public void comment(char[] ch, int start, int length)
Signals the start of a comment

endCDATA

public void endCDATA()
Signals and end to CDATA section

endDocument

public void endDocument()
Signals the end of the document

endDTD

public void endDTD()
Signals the end of the DTD internal subset

endElement

public void endElement(String name)

DocumentHandler#endElement

Signals the end of an element

Parameters: name the name of the element

endElement

public void endElement(String namespaceURI, String localName, String qName)

ContentHandler#endElement

Signals the end of an element

Parameters: name the name of the element

endEntity

public void endEntity(String name)
Signals the end of an Entity

endPrefixMapping

public void endPrefixMapping(String prefix)
Signals to end the namespace prefix mapping

Parameters: prefix the namespace prefix

ignorableWhitespace

public void ignorableWhitespace(char[] chars, int start, int length)
Signals the start of ignorable whitespace characters

Parameters: chars the character array containing the characters to receive start the index into the character array to start receiving characters at length the number of characters to recieve

processingInstruction

public void processingInstruction(String target, String data)
Signals to recieve a processing instruction

Parameters: target the target of the processing instruction data the content of the processing instruction

setDocumentLocator

public void setDocumentLocator(Locator locator)
Sets the document locator

Parameters: locator the Locator used by this DocumentHandler

skippedEntity

public void skippedEntity(String name)
Signals that an entity was skipped by the parser

Parameters: name the skipped entity's name

startCDATA

public void startCDATA()
Signals the start of a CDATA section

startDocument

public void startDocument()
Signals the start of a document

startDTD

public void startDTD(String name, String publicId, String systemId)
Signals the start of the DTD internal subset

startElement

public void startElement(String name, AttributeList atts)

DocumentHandler#startElement

Signals the start of element

Parameters: name the name of the element atts the AttributeList containing the associated attributes for the element

startElement

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)

ContentHandler#startElement

Signals the start of element

Parameters: name the name of the element atts the AttributeList containing the associated attributes for the element

startEntity

public void startEntity(String name)
Signals the start of an Entity

startPrefixMapping

public void startPrefixMapping(String prefix, String uri)
Signals to start the namespace - prefix mapping

Parameters: prefix the namespace prefix to map uri the namespace URI