/**
* @author jnegre - http://www.jnegre.org/
*
- * (c)Copyright 2002 Jérôme Nègre
+ * (c)Copyright 2002 J�r�me N�gre
*
*/
public class Item {
this.channel = channel;
this.title = readValue("title", itemElement, 0);
this.link = readValue("link", itemElement, 0);
- this.description = readValue("description", itemElement, 0);
+
+ String simpleDescription = readValue("description", itemElement, 0);
+ String contentEncoded = readValue("content:encoded", itemElement, 0);
+ this.description = contentEncoded!=null?contentEncoded:simpleDescription;
+
this.author = readValue("author", itemElement, 0);
this.guid = readValue("guid", itemElement, 1);
String pubDate = readValue("pubDate", itemElement, 0);
if(string.charAt(position) == 'Z') {
calendar.set(Calendar.ZONE_OFFSET,0);
if(length != position +1) {
- //trop de caractères
+ //trop de caract�res
throw new Exception("Invalid format of dc:date (extra tokens)");
}
} else if(string.charAt(position) == '+' || string.charAt(position) == '-') {
int minute = readInt(string,position+4,2);
calendar.set(Calendar.ZONE_OFFSET,sign*(hour*60*60*1000+minute*60*1000));
if(length != position +6) {
- //trop de caractères
+ //trop de caract�res
throw new Exception("Invalid format of dc:date (extra tokens)");
}
} else {