Package ch.qos.logback.core.joran.event
Class SaxEventRecorder
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- ch.qos.logback.core.joran.event.SaxEventRecorder
-
- All Implemented Interfaces:
ContextAware,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
@Deprecated(since="2022-01-27") public class SaxEventRecorder extends DefaultHandler implements ContextAware
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description List<SaxEvent>saxEventListDeprecated.
-
Constructor Summary
Constructors Constructor Description SaxEventRecorder(Context context)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddError(String msg)Deprecated.voidaddError(String msg, Throwable ex)Deprecated.voidaddInfo(String msg)Deprecated.voidaddInfo(String msg, Throwable ex)Deprecated.voidaddStatus(Status status)Deprecated.voidaddWarn(String msg)Deprecated.voidaddWarn(String msg, Throwable ex)Deprecated.voidcharacters(char[] ch, int start, int length)Deprecated.voidendElement(String namespaceURI, String localName, String qName)Deprecated.voiderror(SAXParseException spe)Deprecated.voidfatalError(SAXParseException spe)Deprecated.ContextgetContext()Deprecated.LocatorgetLocator()Deprecated.List<SaxEvent>getSaxEventList()Deprecated.voidrecordEvents(InputStream inputStream)Deprecated.List<SaxEvent>recordEvents(InputSource inputSource)Deprecated.voidsetContext(Context context)Deprecated.voidsetDocumentLocator(Locator l)Deprecated.voidstartDocument()Deprecated.voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)Deprecated.voidwarning(SAXParseException spe)Deprecated.-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl
-
-
-
-
Constructor Detail
-
SaxEventRecorder
public SaxEventRecorder(Context context)
Deprecated.
-
-
Method Detail
-
recordEvents
public final void recordEvents(InputStream inputStream) throws JoranException
Deprecated.- Throws:
JoranException
-
recordEvents
public List<SaxEvent> recordEvents(InputSource inputSource) throws JoranException
Deprecated.- Throws:
JoranException
-
startDocument
public void startDocument()
Deprecated.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler
-
getLocator
public Locator getLocator()
Deprecated.
-
setDocumentLocator
public void setDocumentLocator(Locator l)
Deprecated.- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
Deprecated.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)Deprecated.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
endElement
public void endElement(String namespaceURI, String localName, String qName)
Deprecated.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler
-
error
public void error(SAXParseException spe) throws SAXException
Deprecated.- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException spe) throws SAXException
Deprecated.- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classDefaultHandler- Throws:
SAXException
-
warning
public void warning(SAXParseException spe) throws SAXException
Deprecated.- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classDefaultHandler- Throws:
SAXException
-
addError
public void addError(String msg)
Deprecated.- Specified by:
addErrorin interfaceContextAware
-
addError
public void addError(String msg, Throwable ex)
Deprecated.- Specified by:
addErrorin interfaceContextAware
-
addInfo
public void addInfo(String msg)
Deprecated.- Specified by:
addInfoin interfaceContextAware
-
addInfo
public void addInfo(String msg, Throwable ex)
Deprecated.- Specified by:
addInfoin interfaceContextAware
-
addStatus
public void addStatus(Status status)
Deprecated.- Specified by:
addStatusin interfaceContextAware
-
addWarn
public void addWarn(String msg)
Deprecated.- Specified by:
addWarnin interfaceContextAware
-
addWarn
public void addWarn(String msg, Throwable ex)
Deprecated.- Specified by:
addWarnin interfaceContextAware
-
getContext
public Context getContext()
Deprecated.- Specified by:
getContextin interfaceContextAware
-
setContext
public void setContext(Context context)
Deprecated.- Specified by:
setContextin interfaceContextAware
-
-