*) Corrections in jMimeMagic MagicRule-file to detect some special rss feeds

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1196 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 3086e38bb1
commit e7d16ef831

Binary file not shown.

@ -696,8 +696,19 @@ public final class plasmaParser {
// printing out all parsed sentences
if (document != null) {
// found text
String[] sentences = document.getSentences();
if (sentences != null) for (int i = 0; i < sentences.length; i++) System.out.println("line " + i + ":" + sentences[i]);
// found links
int anchorNr = 0;
Map anchors = document.getAnchors();
Iterator anchorIter = anchors.keySet().iterator();
while (anchorIter.hasNext()) {
String key = (String) anchorIter.next();
System.out.println("URL " + anchorNr + ":\t" + key + " | " + anchors.get(key));
anchorNr++;
}
}
} catch (Exception e) {
e.printStackTrace();

Loading…
Cancel
Save