public class SAX2XNI extends Object implements ContentHandler, XMLDocumentSource
ContentHandler events
and produces the equivalent XMLDocumentHandler events.| Constructor and Description |
|---|
SAX2XNI(XMLDocumentHandler core) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] buf,
int offset,
int len) |
void |
endDocument() |
void |
endElement(String uri,
String local,
String qname) |
void |
endPrefixMapping(String prefix) |
XMLDocumentHandler |
getDocumentHandler()
Returns the document handler
|
void |
ignorableWhitespace(char[] buf,
int offset,
int len) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentHandler(XMLDocumentHandler handler)
Sets the document handler.
|
void |
setDocumentLocator(Locator _loc) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String local,
String qname,
Attributes att) |
void |
startPrefixMapping(String prefix,
String uri) |
public SAX2XNI(XMLDocumentHandler core)
public void setDocumentHandler(XMLDocumentHandler handler)
XMLDocumentSourcesetDocumentHandler in interface XMLDocumentSourcepublic XMLDocumentHandler getDocumentHandler()
XMLDocumentSourcegetDocumentHandler in interface XMLDocumentSourcepublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startElement(String uri, String local, String qname, Attributes att) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String uri, String local, String qname) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] buf,
int offset,
int len)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] buf,
int offset,
int len)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri)
startPrefixMapping in interface ContentHandlerpublic void endPrefixMapping(String prefix)
endPrefixMapping in interface ContentHandlerpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void skippedEntity(String name)
skippedEntity in interface ContentHandlerpublic void setDocumentLocator(Locator _loc)
setDocumentLocator in interface ContentHandlerCopyright © 2018–2021 mhoffrogge. All rights reserved.