1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.sun.syndication.io.impl;
18
19 import com.sun.syndication.feed.rss.Description;
20 import org.jdom.Element;
21
22 /***
23 */
24 public class RSS20Parser extends RSS094Parser {
25
26 public RSS20Parser() {
27 this("rss_2.0");
28 }
29
30 protected RSS20Parser(String type) {
31 super(type);
32 }
33
34 protected String getRSSVersion() {
35 return "2.0";
36 }
37
38 protected boolean isHourFormat24(Element rssRoot) {
39 return false;
40 }
41
42 protected Description parseItemDescription(Element rssRoot,Element eDesc) {
43 Description desc = super.parseItemDescription(rssRoot,eDesc);
44 desc.setType("text/plain");
45 return desc;
46 }
47
48 }