public class ChainedAoSaxHandler extends org.xml.sax.helpers.DefaultHandler
AoEntityHandler.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.
This only processes the
Modifier and Type | Field and Description |
---|---|
static String |
AO_BACKUP_XML |
static String |
BOOLEAN |
static String |
COLUMN |
static String |
COLUMN_NAME |
static String |
DATA |
static String |
DATE |
static String |
DOUBLE |
static SecureXmlEntityResolver |
EMPTY_ENTITY_RESOLVER |
static String |
INTEGER |
static String |
ROW |
static String |
STRING |
static String |
TABLE_NAME |
Constructor and Description |
---|
ChainedAoSaxHandler()
Simple constructor for creating an AbstractHandler without progress feedback.
|
ChainedAoSaxHandler(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(AoEntityHandler handler) |
void |
registerHandlers(Iterable<? extends AoEntityHandler> aoPluginPreImportHandlers) |
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 static final String AO_BACKUP_XML
public static final String DATA
public static final String TABLE_NAME
public static final String COLUMN
public static final String COLUMN_NAME
public static final String ROW
public static final String STRING
public static final String INTEGER
public static final String DOUBLE
public static final String BOOLEAN
public static final String DATE
public ChainedAoSaxHandler(TaskProgressProcessor taskProgressProcessor)
taskProgressProcessor
- the TaskProgressProcessor that relays the progress information.public ChainedAoSaxHandler()
public void registerHandler(AoEntityHandler handler)
public void registerHandlers(Iterable<? extends AoEntityHandler> aoPluginPreImportHandlers)
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-2016 Atlassian. All Rights Reserved.