public class SAX2ANY extends Object implements ContentHandler, DocumentHandler, ErrorHandler
| Constructor and Description |
|---|
SAX2ANY()
Default constructor
|
SAX2ANY(NamespacesStack namespacesStack,
boolean wsPreserve)
Constructs a SAX2ANY given a namespace context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String name) |
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
AnyNode |
getStartingNode() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator)
Sets the document locator of the current parsed inputsource
|
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String name,
AttributeList atts)
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri) |
void |
warning(SAXParseException e) |
public SAX2ANY()
public SAX2ANY(NamespacesStack namespacesStack, boolean wsPreserve)
namespacesStack - the namespace stackwsPreserve - if white spaces whould be preservedpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in interface DocumentHandlerlocator - the Locator of the current parsed inputsourcepublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in interface DocumentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in interface DocumentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in interface DocumentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in interface DocumentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void startElement(String name, AttributeList atts) throws SAXException
startElement in interface DocumentHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)startElement in interface ContentHandlerSAXExceptionpublic void endElement(String name) throws SAXException
endElement in interface DocumentHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in interface DocumentHandlerSAXExceptionpublic void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic AnyNode getStartingNode()
Copyright © 2016. All rights reserved.