public class ChainedOfBizSaxHandler extends org.xml.sax.helpers.DefaultHandler
ImportOfBizEntityHandler.handleEntity(String, java.util.Map) method on its
registered delegates. The attributes map includes any attributes that may be nested as sub-elements. TaskProgressSink then the progress of the XML processing will
be relayed.| Modifier and Type | Field and Description |
|---|---|
static SecureXmlEntityResolver |
EMPTY_ENTITY_RESOLVER |
| Constructor and Description |
|---|
ChainedOfBizSaxHandler()
Simple constructor for creating an AbstractHandler without progress feedback.
|
ChainedOfBizSaxHandler(TaskProgressProcessor taskProgressProcessor)
Constructor to create an AbstractHandler with progress feedback.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
long |
getEntityCount()
Provides the number of actual XML elements that the parser encounters.
|
void |
registerHandler(ImportOfBizEntityHandler handler) |
void |
registerHandlers(Iterable<? extends ImportOfBizEntityHandler> handlers) |
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic static final SecureXmlEntityResolver EMPTY_ENTITY_RESOLVER
public ChainedOfBizSaxHandler()
public ChainedOfBizSaxHandler(TaskProgressProcessor taskProgressProcessor)
taskProgressProcessor - the TaskProgressProcessor that relays the progress information.public void registerHandler(ImportOfBizEntityHandler handler)
public void registerHandlers(Iterable<? extends ImportOfBizEntityHandler> handlers)
public long getEntityCount()
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity in interface EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerIOExceptionSAXExceptionpublic final void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic final void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic final void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic final void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2002-2018 Atlassian. All Rights Reserved.