Search in sources :

Example 1 with EndEvent

use of ch.qos.logback.core.joran.event.EndEvent in project logback-android by tony19.

the class EventPlayer method play.

public void play(List<SaxEvent> aSaxEventList) {
    eventList = aSaxEventList;
    SaxEvent se;
    for (currentIndex = 0; currentIndex < eventList.size(); currentIndex++) {
        se = eventList.get(currentIndex);
        if (se instanceof StartEvent) {
            interpreter.startElement((StartEvent) se);
            // invoke fireInPlay after startElement processing
            interpreter.getInterpretationContext().fireInPlay(se);
        }
        if (se instanceof BodyEvent) {
            // invoke fireInPlay before  characters processing
            interpreter.getInterpretationContext().fireInPlay(se);
            interpreter.characters((BodyEvent) se);
        }
        if (se instanceof EndEvent) {
            // invoke fireInPlay before endElement processing
            interpreter.getInterpretationContext().fireInPlay(se);
            interpreter.endElement((EndEvent) se);
        }
    }
}
Also used : SaxEvent(ch.qos.logback.core.joran.event.SaxEvent) StartEvent(ch.qos.logback.core.joran.event.StartEvent) EndEvent(ch.qos.logback.core.joran.event.EndEvent) BodyEvent(ch.qos.logback.core.joran.event.BodyEvent)

Aggregations

BodyEvent (ch.qos.logback.core.joran.event.BodyEvent)1 EndEvent (ch.qos.logback.core.joran.event.EndEvent)1 SaxEvent (ch.qos.logback.core.joran.event.SaxEvent)1 StartEvent (ch.qos.logback.core.joran.event.StartEvent)1