Search in sources :

Example 1 with Namespace

use of de.danoeh.antennapod.parser.feed.namespace.Namespace in project AntennaPod by AntennaPod.

the class SyndHandler method endElement.

@Override
public void endElement(String uri, String localName, String qualifiedName) throws SAXException {
    Namespace handler = getHandlingNamespace(uri, qualifiedName);
    if (handler != null) {
        handler.handleElementEnd(localName, state);
        state.tagstack.pop();
    }
    state.contentBuf = null;
}
Also used : Namespace(de.danoeh.antennapod.parser.feed.namespace.Namespace)

Example 2 with Namespace

use of de.danoeh.antennapod.parser.feed.namespace.Namespace in project AntennaPod by AntennaPod.

the class SyndHandler method startElement.

@Override
public void startElement(String uri, String localName, String qualifiedName, Attributes attributes) throws SAXException {
    state.contentBuf = new StringBuilder();
    Namespace handler = getHandlingNamespace(uri, qualifiedName);
    if (handler != null) {
        SyndElement element = handler.handleElementStart(localName, state, attributes);
        state.tagstack.push(element);
    }
}
Also used : SyndElement(de.danoeh.antennapod.parser.feed.element.SyndElement) Namespace(de.danoeh.antennapod.parser.feed.namespace.Namespace)

Aggregations

Namespace (de.danoeh.antennapod.parser.feed.namespace.Namespace)2 SyndElement (de.danoeh.antennapod.parser.feed.element.SyndElement)1