blob: 7f2a3e87d79d79000571aeebaea65e9a0f9a3dbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package de.danoeh.antennapod.syndication.namespace;
import org.xml.sax.Attributes;
import de.danoeh.antennapod.syndication.handler.HandlerState;
public class NSContent extends Namespace {
public static final String NSTAG = "content";
public static final String NSURI = "http://purl.org/rss/1.0/modules/content/";
private static final String ENCODED = "encoded";
@Override
public SyndElement handleElementStart(String localName, HandlerState state,
Attributes attributes) {
return new SyndElement(localName, this);
}
@Override
public void handleElementEnd(String localName, HandlerState state) {
if (localName.equals(ENCODED)) {
state.getCurrentItem().setContentEncoded(state.getContentBuf().toString());
}
}
}
|