Search in sources :

Example 1 with Namespace

use of de.danoeh.antennapod.core.syndication.namespace.Namespace in project AntennaPod by AntennaPod.

the class SyndHandler method startElement.

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

Example 2 with Namespace

use of de.danoeh.antennapod.core.syndication.namespace.Namespace in project AntennaPod by AntennaPod.

the class SyndHandler method endElement.

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

Aggregations

Namespace (de.danoeh.antennapod.core.syndication.namespace.Namespace)2 SyndElement (de.danoeh.antennapod.core.syndication.namespace.SyndElement)1