railo.runtime.helpers
Class XMLEventParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by railo.runtime.helpers.XMLEventParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public final class XMLEventParser
extends DefaultHandler

Sax Parse with callback to CFC Methods


Field Summary
static String DEFAULT_SAX_PARSER
          Field DEFAULT_SAX_PARSER
 
Constructor Summary
XMLEventParser(PageContext pc, UDF startDocument, UDF startElement, UDF body, UDF endElement, UDF endDocument, UDF error)
          constructor of the class
 
Method Summary
 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)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SAX_PARSER

public static final String DEFAULT_SAX_PARSER
Field DEFAULT_SAX_PARSER

See Also:
Constant Field Values
Constructor Detail

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 -
Method Detail

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