diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-12-31 17:50:25 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-12-31 17:50:25 +0100 |
commit | 09ae33ea909aa5b547170210919931f83d5d8952 (patch) | |
tree | 53721b953339db4576dcb5c05cf0c742926dac2b /src/de/danoeh/antennapod/syndication/namespace/NSContent.java | |
parent | 705693ea0c9c2c856132cc2a5b208594f8ace0e9 (diff) | |
download | AntennaPod-09ae33ea909aa5b547170210919931f83d5d8952.zip |
Moved namespace classes
Deleted packages with only one class in it
Diffstat (limited to 'src/de/danoeh/antennapod/syndication/namespace/NSContent.java')
-rw-r--r-- | src/de/danoeh/antennapod/syndication/namespace/NSContent.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/syndication/namespace/NSContent.java b/src/de/danoeh/antennapod/syndication/namespace/NSContent.java new file mode 100644 index 000000000..7f2a3e87d --- /dev/null +++ b/src/de/danoeh/antennapod/syndication/namespace/NSContent.java @@ -0,0 +1,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()); + } + } + +} |