diff --git a/libx/jmimemagic-0.0.4a.jar b/libx/jmimemagic-0.0.4a.jar index a466dd014..9fb2355d3 100644 Binary files a/libx/jmimemagic-0.0.4a.jar and b/libx/jmimemagic-0.0.4a.jar differ diff --git a/source/de/anomic/plasma/plasmaParser.java b/source/de/anomic/plasma/plasmaParser.java index b50d0eaa5..a27ff1c0b 100644 --- a/source/de/anomic/plasma/plasmaParser.java +++ b/source/de/anomic/plasma/plasmaParser.java @@ -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();