summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/syndication/namespace/NSContent.java
blob: 9ad3026be70a46430b6a5950a72ab64c280553b9 (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
package de.danoeh.antennapod.syndication.namespace;

import de.danoeh.antennapod.syndication.handler.HandlerState;
import org.xml.sax.Attributes;

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());
		}
	}

}