summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/syndication/namespace/NSContent.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-12-31 17:50:25 +0100
committerdaniel oeh <daniel.oeh@gmail.com>2012-12-31 17:50:25 +0100
commit09ae33ea909aa5b547170210919931f83d5d8952 (patch)
tree53721b953339db4576dcb5c05cf0c742926dac2b /src/de/danoeh/antennapod/syndication/namespace/NSContent.java
parent705693ea0c9c2c856132cc2a5b208594f8ace0e9 (diff)
downloadAntennaPod-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.java26
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());
+ }
+ }
+
+}