*
* @return the content of the resource - can be text,link or XML
*/
public String getContent() throws IOException {
SyndContent content = syndEntry.getContent();
if (content != null) {
String src = content.getSrc();
if (src != null) {
return src;
}
String type = content.getType();
// TODO: get content using type?
String value = String.valueOf(content.getValue());
value = value != null ? value : "";
if (type != null && (SyndTextType.xhtml.name().equals(type) || AtomJAXBUtils
.isTypeXml(type))) {
return StringEscapeUtils.escapeXml(value);
}