org.xml.sax.ContentHandler
, org.xml.sax.DocumentHandler
, org.xml.sax.ErrorHandler
public class SAX2ANY
extends java.lang.Object
implements org.xml.sax.ContentHandler, org.xml.sax.DocumentHandler, org.xml.sax.ErrorHandler
Constructor | Description |
---|---|
SAX2ANY() |
Default constructor
|
SAX2ANY(Namespaces context,
boolean wsPreserve) |
Constructs a SAX2ANY given a namespace context.
|
Modifier and Type | Method | Description |
---|---|---|
void |
characters(char[] ch,
int start,
int length) |
|
void |
endDocument() |
|
void |
endElement(java.lang.String name) |
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
|
void |
endPrefixMapping(java.lang.String prefix) |
|
void |
error(org.xml.sax.SAXParseException e) |
|
void |
fatalError(org.xml.sax.SAXParseException e) |
|
Namespaces |
getNamespaceContext() |
Get the namespace context of this SAX2ANY handler.
|
AnyNode |
getStartingNode() |
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
|
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
|
void |
setDocumentLocator(org.xml.sax.Locator locator) |
Sets the document locator of the current parsed inputsource
|
void |
setNamespaceContext(Namespaces context) |
Set the namespace context in which this handler acts.
|
void |
skippedEntity(java.lang.String name) |
|
void |
startDocument() |
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
Implementation of
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts) |
Implementation of
DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
|
void |
warning(org.xml.sax.SAXParseException e) |
public SAX2ANY()
public SAX2ANY(Namespaces context, boolean wsPreserve)
context
- the namespace context in which this handler acts.wsPreserve
- if white spaces whould be preservedpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in interface org.xml.sax.DocumentHandler
locator
- the Locator of the current parsed inputsourcepublic void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ignorableWhitespace
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXException
DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
startElement
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public 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(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public AnyNode getStartingNode()
public Namespaces getNamespaceContext()
public void setNamespaceContext(Namespaces context)
context
- the namespace context to interact with while parsing an
XML fragment with the SAX2ANY handler.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com