Package org.exolab.adaptx.xslt.util
Class SAXInput
java.lang.Object
org.exolab.adaptx.xslt.util.SAXInput
- All Implemented Interfaces:
ContentHandler
,DocumentHandler
,LexicalHandler
- Direct Known Subclasses:
TransformerHandlerImpl
A SAX 1.0 and 2.0 adapter for the source tree
- Version:
- $Revision: 3928 $ $Date: 2003-10-01 10:52:12 +0200 (Wed, 01 Oct 2003) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] chars, int start, int length) Signals the start of charactersvoid
comment
(char[] ch, int start, int length) Signals the start of a commentvoid
endCDATA()
Signals and end to CDATA sectionvoid
Signals the end of the documentvoid
endDTD()
Signals the end of the DTD internal subsetvoid
endElement
(String name) DocumentHandler#endElementvoid
endElement
(String namespaceURI, String localName, String qName) ContentHandler#endElementvoid
Signals the end of an Entityvoid
endPrefixMapping
(String prefix) Signals to end the namespace prefix mappinggetRoot()
Returns the root XPathNodevoid
ignorableWhitespace
(char[] chars, int start, int length) Signals the start of ignorable whitespace charactersvoid
processingInstruction
(String target, String data) Signals to recieve a processing instructionvoid
setDocumentLocator
(Locator locator) Sets the document locatorvoid
setOutputHandler
(Writer writer) void
setOutputHandler
(ResultHandler handler) void
setProcessor
(XSLTProcessor processor) Sets the XSLTProcessor to use for the XSL Transformationsvoid
setStylesheet
(XSLTStylesheet stylesheet) void
skippedEntity
(String name) Signals that an entity was skipped by the parservoid
Signals the start of a CDATA sectionvoid
Signals the start of a documentvoid
Signals the start of the DTD internal subsetvoid
startElement
(String namespaceURI, String localName, String qName, Attributes atts) ContentHandler#startElementvoid
startElement
(String name, AttributeList atts) DocumentHandler#startElementvoid
startEntity
(String name) Signals the start of an Entityvoid
startPrefixMapping
(String prefix, String uri) Signals to start the namespace - prefix mappingMethods 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
-
SAXInput
public SAXInput()Creates a new SAXInput -
SAXInput
public SAXInput(boolean saveLocation) Creates a new SAXInput
-
-
Method Details
-
setProcessor
Sets the XSLTProcessor to use for the XSL Transformations- Parameters:
processor
- the XSLTProcessor to invoke
-
setOutputHandler
-
setOutputHandler
-
setStylesheet
-
getRoot
Returns the root XPathNode- Returns:
- the root XPathNode
-
characters
Signals the start of characters- Specified by:
characters
in interfaceContentHandler
- Specified by:
characters
in 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:
endDocument
in interfaceContentHandler
- Specified by:
endDocument
in interfaceDocumentHandler
- Throws:
SAXException
-
endElement
DocumentHandler#endElement
Signals the end of an element- Specified by:
endElement
in interfaceDocumentHandler
- Parameters:
name
- the name of the element- Throws:
SAXException
-
endElement
ContentHandler#endElement
Signals the end of an element- Specified by:
endElement
in interfaceContentHandler
- Parameters:
name
- the name of the element- Throws:
SAXException
-
endPrefixMapping
Signals to end the namespace prefix mapping- Specified by:
endPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
- the namespace prefix- Throws:
SAXException
-
ignorableWhitespace
Signals the start of ignorable whitespace characters- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Specified by:
ignorableWhitespace
in 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:
processingInstruction
in interfaceContentHandler
- Specified by:
processingInstruction
in interfaceDocumentHandler
- Parameters:
target
- the target of the processing instructiondata
- the content of the processing instruction- Throws:
SAXException
-
setDocumentLocator
Sets the document locator- Specified by:
setDocumentLocator
in interfaceContentHandler
- Specified by:
setDocumentLocator
in interfaceDocumentHandler
- Parameters:
locator
- the Locator used by this DocumentHandler
-
skippedEntity
Signals that an entity was skipped by the parser- Specified by:
skippedEntity
in interfaceContentHandler
- Parameters:
name
- the skipped entity's name- Throws:
SAXException
-
startDocument
Signals the start of a document- Specified by:
startDocument
in interfaceContentHandler
- Specified by:
startDocument
in interfaceDocumentHandler
- Throws:
SAXException
-
startElement
DocumentHandler#startElement
Signals the start of element- Specified by:
startElement
in 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:
startElement
in interfaceContentHandler
- Parameters:
name
- the name of the elementatts
- the AttributeList containing the associated attributes for the element- Throws:
SAXException
-
startPrefixMapping
Signals to start the namespace - prefix mapping- Specified by:
startPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
- the namespace prefix to mapuri
- the namespace URI- Throws:
SAXException
-
comment
Signals the start of a comment- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
Signals and end to CDATA section- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
Signals the end of the DTD internal subset- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
Signals the end of an Entity- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
Signals the start of a CDATA section- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
Signals the start of the DTD internal subset- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
Signals the start of an Entity- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-