public class SAXInput
extends java.lang.Object
implements org.xml.sax.ContentHandler, org.xml.sax.DocumentHandler, org.xml.sax.ext.LexicalHandler
| Constructor and Description |
|---|
SAXInput()
Creates a new SAXInput
|
SAXInput(boolean saveLocation)
Creates a new SAXInput
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] chars,
int start,
int length)
Signals the start of characters
|
void |
comment(char[] ch,
int start,
int length)
Signals the start of a comment
|
void |
endCDATA()
Signals and end to CDATA section
|
void |
endDocument()
Signals the end of the document
|
void |
endDTD()
Signals the end of the DTD internal subset
|
void |
endElement(java.lang.String name)
DocumentHandler#endElement
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
ContentHandler#endElement
|
void |
endEntity(java.lang.String name)
Signals the end of an Entity
|
void |
endPrefixMapping(java.lang.String prefix)
Signals to end the namespace prefix mapping
|
XPathNode |
getRoot()
Returns the root XPathNode
|
void |
ignorableWhitespace(char[] chars,
int start,
int length)
Signals the start of ignorable whitespace characters
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Signals to recieve a processing instruction
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Sets the document locator
|
void |
setOutputHandler(ResultHandler handler) |
void |
setOutputHandler(java.io.Writer writer) |
void |
setProcessor(XSLTProcessor processor)
Sets the XSLTProcessor to use for the XSL Transformations
|
void |
setStylesheet(XSLTStylesheet stylesheet) |
void |
skippedEntity(java.lang.String name)
Signals that an entity was skipped by the parser
|
void |
startCDATA()
Signals the start of a CDATA section
|
void |
startDocument()
Signals the start of a document
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Signals the start of the DTD internal subset
|
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
DocumentHandler#startElement
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
ContentHandler#startElement
|
void |
startEntity(java.lang.String name)
Signals the start of an Entity
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Signals to start the namespace - prefix mapping
|
public SAXInput()
public SAXInput(boolean saveLocation)
public void setProcessor(XSLTProcessor processor)
processor - the XSLTProcessor to invokepublic void setOutputHandler(ResultHandler handler)
public void setOutputHandler(java.io.Writer writer)
public void setStylesheet(XSLTStylesheet stylesheet)
public XPathNode getRoot()
public void characters(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in interface org.xml.sax.DocumentHandlerchars - the character array containing the characters
to receivestart - the index into the character array to start receiving
characters atlength - the number of characters to recieveorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String name)
throws org.xml.sax.SAXException
DocumentHandler#endElement
Signals the end of an elementendElement in interface org.xml.sax.DocumentHandlername - the name of the elementorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
ContentHandler#endElement
Signals the end of an elementendElement in interface org.xml.sax.ContentHandlername - the name of the elementorg.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerprefix - the namespace prefixorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in interface org.xml.sax.DocumentHandlerchars - the character array containing the characters
to receivestart - the index into the character array to start receiving
characters atlength - the number of characters to recieveorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerprocessingInstruction in interface org.xml.sax.DocumentHandlertarget - the target of the processing instructiondata - the content of the processing instructionorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in interface org.xml.sax.DocumentHandlerlocator - the Locator used by this DocumentHandlerpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlername - the skipped entity's nameorg.xml.sax.SAXExceptionpublic void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
throws org.xml.sax.SAXException
DocumentHandler#startElement
Signals the start of elementstartElement in interface org.xml.sax.DocumentHandlername - the name of the elementatts - the AttributeList containing the associated
attributes for the elementorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
ContentHandler#startElement
Signals the start of elementstartElement in interface org.xml.sax.ContentHandlername - the name of the elementatts - the AttributeList containing the associated
attributes for the elementorg.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerprefix - the namespace prefix to mapuri - the namespace URIorg.xml.sax.SAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionpublic void endCDATA()
throws org.xml.sax.SAXException
endCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionpublic void endDTD()
throws org.xml.sax.SAXException
endDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionpublic void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
endEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionpublic void startCDATA()
throws org.xml.sax.SAXException
startCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionpublic void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
startDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXExceptionpublic void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
startEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException