public final class XMLEventParser extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SAX_PARSER
Field
DEFAULT_SAX_PARSER |
Constructor and Description |
---|
XMLEventParser(PageContext pc,
UDF startDocument,
UDF startElement,
UDF body,
UDF endElement,
UDF endDocument,
UDF error)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
void |
start(Resource xmlFile)
start execution of the parser
|
void |
start(Resource xmlFile,
String saxParserCass)
start execution of the parser
|
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public static final String DEFAULT_SAX_PARSER
DEFAULT_SAX_PARSER
public XMLEventParser(PageContext pc, UDF startDocument, UDF startElement, UDF body, UDF endElement, UDF endDocument, UDF error)
pc
- startDocument
- startElement
- body
- endElement
- endDocument
- error
- public void start(Resource xmlFile) throws PageException
xmlFile
- PageException
public void start(Resource xmlFile, String saxParserCass) throws PageException
xmlFile
- saxParserCass
- PageException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
Copyright © 2015 Lucee