railo.runtime.helpers
Class XMLEventParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
railo.runtime.helpers.XMLEventParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public final class XMLEventParser
- extends DefaultHandler
Sax Parse with callback to CFC Methods
DEFAULT_SAX_PARSER
public static final String DEFAULT_SAX_PARSER
- Field
DEFAULT_SAX_PARSER
- See Also:
- Constant Field Values
XMLEventParser
public XMLEventParser(PageContext pc,
UDF startDocument,
UDF startElement,
UDF body,
UDF endElement,
UDF endDocument,
UDF error)
- constructor of the class
- Parameters:
pc
- startDocument
- startElement
- body
- endElement
- endDocument
- error
-
start
public void start(Resource xmlFile)
throws PageException
- start execution of the parser
- Parameters:
xmlFile
-
- Throws:
PageException
start
public void start(Resource xmlFile,
String saxParserCass)
throws PageException
- start execution of the parser
- Parameters:
xmlFile
- saxParserCass
-
- Throws:
PageException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class DefaultHandler
- Throws:
SAXException
error
public void error(SAXParseException e)
throws SAXException
- Specified by:
error
in interface ErrorHandler
- Overrides:
error
in class DefaultHandler
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException e)
throws SAXException
- Specified by:
fatalError
in interface ErrorHandler
- Overrides:
fatalError
in class DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class DefaultHandler
- Throws:
SAXException
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class DefaultHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class DefaultHandler
- Throws:
SAXException
Copyright © 2012 Railo