From 04932dc268b7149fab903adf4f190643a9f8ca93 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 3 Nov 2010 20:06:23 +0000 Subject: [PATCH] added rdf data structure for rss feeds git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7297 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/cora/document/RSSReader.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/cora/document/RSSReader.java b/source/net/yacy/cora/document/RSSReader.java index 665f112c8..78ef85565 100644 --- a/source/net/yacy/cora/document/RSSReader.java +++ b/source/net/yacy/cora/document/RSSReader.java @@ -42,7 +42,7 @@ public class RSSReader extends DefaultHandler { private final RSSFeed theChannel; private Type type; - public enum Type { rss, atom, none }; + public enum Type { rss, atom, rdf, none }; private RSSReader(int maxsize) { theChannel = new RSSFeed(maxsize); @@ -99,8 +99,9 @@ public class RSSReader extends DefaultHandler { } final String end = new String(a, a.length - 80, 80); Type type = Type.none; - if (end.indexOf("rss") > 0) type = Type.rss; - if (end.indexOf("feed") > 0) type = Type.atom; + if (end.indexOf("rss") > 0) type = Type.rss; + if (end.indexOf("feed") > 0) type = Type.atom; + if (end.indexOf("rdf") > 0) type = Type.rdf; if (type == Type.none) { throw new IOException("response incomplete"); }