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, warning
public 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 EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
IOException
SAXException
public final void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public final void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public final void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public final void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2002-2024 Atlassian. All Rights Reserved.