public class SaxEventRecorder extends org.xml.sax.helpers.DefaultHandler implements ContextAware
Modifier and Type | Field and Description |
---|---|
java.util.List<SaxEvent> |
saxEventList |
Constructor and Description |
---|
SaxEventRecorder(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.String msg) |
void |
addError(java.lang.String msg,
java.lang.Throwable ex) |
void |
addInfo(java.lang.String msg) |
void |
addInfo(java.lang.String msg,
java.lang.Throwable ex) |
void |
addStatus(Status status) |
void |
addWarn(java.lang.String msg) |
void |
addWarn(java.lang.String msg,
java.lang.Throwable ex) |
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
void |
error(org.xml.sax.SAXParseException spe) |
void |
fatalError(org.xml.sax.SAXParseException spe) |
Context |
getContext() |
org.xml.sax.Locator |
getLocator() |
java.util.List<SaxEvent> |
getSaxEventList() |
java.util.List<SaxEvent> |
recordEvents(org.xml.sax.InputSource inputSource) |
void |
recordEvents(java.io.InputStream inputStream) |
void |
setContext(Context context) |
void |
setDocumentLocator(org.xml.sax.Locator l) |
void |
startDocument() |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
warning(org.xml.sax.SAXParseException spe) |
public java.util.List<SaxEvent> saxEventList
public SaxEventRecorder(Context context)
public final void recordEvents(java.io.InputStream inputStream) throws JoranException
JoranException
public java.util.List<SaxEvent> recordEvents(org.xml.sax.InputSource inputSource) throws JoranException
JoranException
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public org.xml.sax.Locator getLocator()
public void setDocumentLocator(org.xml.sax.Locator l)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void error(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void addError(java.lang.String msg)
addError
in interface ContextAware
public void addError(java.lang.String msg, java.lang.Throwable ex)
addError
in interface ContextAware
public void addInfo(java.lang.String msg)
addInfo
in interface ContextAware
public void addInfo(java.lang.String msg, java.lang.Throwable ex)
addInfo
in interface ContextAware
public void addStatus(Status status)
addStatus
in interface ContextAware
public void addWarn(java.lang.String msg)
addWarn
in interface ContextAware
public void addWarn(java.lang.String msg, java.lang.Throwable ex)
addWarn
in interface ContextAware
public Context getContext()
getContext
in interface ContextAware
public void setContext(Context context)
setContext
in interface ContextAware
public java.util.List<SaxEvent> getSaxEventList()
Copyright © 2010 - 2020 Adobe. All Rights Reserved