Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
minor changes: *) added annotations *) set svn properties and added keywords to comments of parser classes *) made a variable final to prevent (theoretical case of) change of object instance in synchronized block
low01211dfb2d54f58
diff --git a/source/de/anomic/plasma/parser/bzip/bzipParser.java b/source/de/anomic/plasma/parser/bzip/bzipParser.javaindex 66ddb1c9f..b87bb0ca9 100644--- a/source/de/anomic/plasma/parser/bzip/bzipParser.java+++ b/source/de/anomic/plasma/parser/bzip/bzipParser.java@@ -6,7 +6,11 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$+//////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -118,6 +122,7 @@ public class bzipParser extends AbstractParser implements Parser {}}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/doc/docParser.java b/source/de/anomic/plasma/parser/doc/docParser.javaindex a7d7f7e09..151c24bad 100644--- a/source/de/anomic/plasma/parser/doc/docParser.java+++ b/source/de/anomic/plasma/parser/doc/docParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 24.04.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -101,6 +104,7 @@ public class docParser extends AbstractParser implements Parser {return docParser.SUPPORTED_MIME_TYPES;}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/gzip/gzipParser.java b/source/de/anomic/plasma/parser/gzip/gzipParser.javaindex b91a460f2..a9dcc6471 100644--- a/source/de/anomic/plasma/parser/gzip/gzipParser.java+++ b/source/de/anomic/plasma/parser/gzip/gzipParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 24.04.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.java b/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.javaindex 27ed518e3..22c427a20 100644--- a/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.java+++ b/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -107,6 +110,7 @@ public class mimeTypeParser extends AbstractParser implements Parser {}@SuppressWarnings("unchecked")+ @Overridepublic plasmaParserDocument parse(final yacyURL location, String mimeType, final String charset, final File sourceFile) throws ParserException, InterruptedException {final String orgMimeType = mimeType;@@ -186,6 +190,7 @@ public class mimeTypeParser extends AbstractParser implements Parser {return mimeTypeParser.SUPPORTED_MIME_TYPES;}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/mimeType/odtDetector.java b/source/de/anomic/plasma/parser/mimeType/odtDetector.javaindex fac15b858..b49525ba2 100644--- a/source/de/anomic/plasma/parser/mimeType/odtDetector.java+++ b/source/de/anomic/plasma/parser/mimeType/odtDetector.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/plasma/parser/mimeType/rssDetector.java b/source/de/anomic/plasma/parser/mimeType/rssDetector.javaindex 1806cb99c..583448eca 100644--- a/source/de/anomic/plasma/parser/mimeType/rssDetector.java+++ b/source/de/anomic/plasma/parser/mimeType/rssDetector.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published bydiff --git a/source/de/anomic/plasma/parser/odt/odtParser.java b/source/de/anomic/plasma/parser/odt/odtParser.javaindex 24deb461f..d80d679f3 100644--- a/source/de/anomic/plasma/parser/odt/odtParser.java+++ b/source/de/anomic/plasma/parser/odt/odtParser.java@@ -1,4 +1,4 @@-//zipParser.java+//odtParser.java//------------------------//part of YaCy//(C) by Michael Peter Christen; [email protected]@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -82,6 +85,7 @@ public class odtParser extends AbstractParser implements Parser {return SUPPORTED_MIME_TYPES;}+ @Overridepublic plasmaParserDocument parse(final yacyURL location, final String mimeType, final String charset, final File dest) throws ParserException, InterruptedException {Writer writer = null;@@ -226,6 +230,7 @@ public class odtParser extends AbstractParser implements Parser {}}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/pdf/pdfParser.java b/source/de/anomic/plasma/parser/pdf/pdfParser.javaindex b0693beea..67441404b 100644--- a/source/de/anomic/plasma/parser/pdf/pdfParser.java+++ b/source/de/anomic/plasma/parser/pdf/pdfParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 24.04.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -190,6 +193,7 @@ public class pdfParser extends AbstractParser implements Parser {}}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/ppt/pptParser.java b/source/de/anomic/plasma/parser/ppt/pptParser.javaindex 9c69e4e74..f76cb6440 100644--- a/source/de/anomic/plasma/parser/ppt/pptParser.java+++ b/source/de/anomic/plasma/parser/ppt/pptParser.java@@ -11,7 +11,6 @@// $LastChangedRevision$// $LastChangedBy$//-////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by//the Free Software Foundation; either version 2 of the License, or@@ -90,7 +89,7 @@ public class pptParser extends AbstractParser implements Parser {if (title.length() == l) break;l = title.length();}-+/** create the plasmaParserDocument for the database* and set shortText and bodyText properlydiff --git a/source/de/anomic/plasma/parser/ps/psParser.java b/source/de/anomic/plasma/parser/ps/psParser.javaindex 39fc80d2b..9cefb96b4 100644--- a/source/de/anomic/plasma/parser/ps/psParser.java+++ b/source/de/anomic/plasma/parser/ps/psParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2007////this file is contributed by Martin Thelian-//last major change: 15.09.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -58,7 +61,7 @@ public class psParser extends AbstractParser implements Parser {*/private static final String[] LIBX_DEPENDENCIES = new String[] {};- private static Object modeScan = new Object();+ private final static Object modeScan = new Object();private static boolean modeScanDone = false;private static String parserMode = "java";@@ -96,6 +99,7 @@ public class psParser extends AbstractParser implements Parser {}+ @Overridepublic plasmaParserDocument parse(final yacyURL location, final String mimeType, final String charset, final File sourceFile) throws ParserException, InterruptedException {File outputFile = null;@@ -261,6 +265,7 @@ public class psParser extends AbstractParser implements Parser {if (execCode != 0) throw new Exception("Unable to convert ps to ascii. ps2ascii returned statuscode " + execCode + "\n" + procErr.toString());}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/rpm/rpmParser.java b/source/de/anomic/plasma/parser/rpm/rpmParser.javaindex 48501cd2d..6b26afd25 100644--- a/source/de/anomic/plasma/parser/rpm/rpmParser.java+++ b/source/de/anomic/plasma/parser/rpm/rpmParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 20.11.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -90,6 +93,7 @@ public class rpmParser extends AbstractParser implements Parser {}}+ @Overridepublic plasmaParserDocument parse(final yacyURL location, final String mimeType, final String charset, final File sourceFile) throws ParserException, InterruptedException {RPMFile rpmFile = null;try {@@ -155,6 +159,7 @@ public class rpmParser extends AbstractParser implements Parser {}}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/rss/rssParser.java b/source/de/anomic/plasma/parser/rss/rssParser.javaindex 0a9581fcf..8a05c3a93 100644--- a/source/de/anomic/plasma/parser/rss/rssParser.java+++ b/source/de/anomic/plasma/parser/rss/rssParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -182,6 +185,7 @@ public class rssParser extends AbstractParser implements Parser {return SUPPORTED_MIME_TYPES;}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/rtf/rtfParser.java b/source/de/anomic/plasma/parser/rtf/rtfParser.javaindex d6839e38d..cd111dbd1 100644--- a/source/de/anomic/plasma/parser/rtf/rtfParser.java+++ b/source/de/anomic/plasma/parser/rtf/rtfParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -102,6 +105,7 @@ public class rtfParser extends AbstractParser implements Parser {return rtfParser.SUPPORTED_MIME_TYPES;}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/sevenzip/ByteArrayIInStream.java b/source/de/anomic/plasma/parser/sevenzip/ByteArrayIInStream.javaindex e70f2d34d..3856d6ef5 100644--- a/source/de/anomic/plasma/parser/sevenzip/ByteArrayIInStream.java+++ b/source/de/anomic/plasma/parser/sevenzip/ByteArrayIInStream.java@@ -6,6 +6,10 @@// Frankfurt, Germany, 2004//// This file ist contributed by Franz Brausze+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -61,6 +65,7 @@ public class ByteArrayIInStream extends IInStream {return this.sbais.read();}+ @Overridepublic int read(final byte[] b, final int off, final int len) throws IOException {return this.sbais.read(b, off, len);}diff --git a/source/de/anomic/plasma/parser/sevenzip/SZParserExtractCallback.java b/source/de/anomic/plasma/parser/sevenzip/SZParserExtractCallback.javaindex 442992e12..ed724bbba 100644--- a/source/de/anomic/plasma/parser/sevenzip/SZParserExtractCallback.java+++ b/source/de/anomic/plasma/parser/sevenzip/SZParserExtractCallback.java@@ -6,6 +6,10 @@// Frankfurt, Germany, 2004//// This file ist contributed by Franz Brausze+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -58,6 +62,7 @@ public class SZParserExtractCallback extends ArchiveExtractCallback {this.prefix = prefix;}+ @Overridepublic void PrepareOperation(final int arg0) {this.extractMode = (arg0 == IInArchive.NExtract_NAskMode_kExtract);switch (arg0) {@@ -73,6 +78,7 @@ public class SZParserExtractCallback extends ArchiveExtractCallback {}}+ @Overridepublic void SetOperationResult(final int arg0) throws IOException {if (arg0 != IInArchive.NExtract_NOperationResult_kOK) {this.NumErrors++;@@ -136,6 +142,7 @@ public class SZParserExtractCallback extends ArchiveExtractCallback {}}+ @Overridepublic OutputStream GetStream(final int index, final int askExtractMode) throws IOException {final SevenZipEntry item = super.archiveHandler.getEntry(index);super.filePath = item.getName();diff --git a/source/de/anomic/plasma/parser/sevenzip/sevenzipParser.java b/source/de/anomic/plasma/parser/sevenzip/sevenzipParser.javaindex 474d65cfe..586ff6113 100644--- a/source/de/anomic/plasma/parser/sevenzip/sevenzipParser.java+++ b/source/de/anomic/plasma/parser/sevenzip/sevenzipParser.java@@ -6,6 +6,10 @@// Frankfurt, Germany, 2004//// This file ist contributed by Franz Brausze+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by@@ -91,11 +95,13 @@ public class sevenzipParser extends AbstractParser implements Parser {}}+ @Overridepublic plasmaParserDocument parse(final yacyURL location, final String mimeType, final String charset,final byte[] source) throws ParserException, InterruptedException {return parse(location, mimeType, charset, new ByteArrayIInStream(source), Parser.MAX_KEEP_IN_MEMORY_SIZE - source.length);}+ @Overridepublic plasmaParserDocument parse(final yacyURL location, final String mimeType, final String charset,final File sourceFile) throws ParserException, InterruptedException {try {diff --git a/source/de/anomic/plasma/parser/tar/tarParser.java b/source/de/anomic/plasma/parser/tar/tarParser.javaindex 14690b040..b86fece0a 100644--- a/source/de/anomic/plasma/parser/tar/tarParser.java+++ b/source/de/anomic/plasma/parser/tar/tarParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -230,6 +233,7 @@ public class tarParser extends AbstractParser implements Parser {}}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/vcf/vcfParser.java b/source/de/anomic/plasma/parser/vcf/vcfParser.javaindex faa42dde0..baf266df4 100644--- a/source/de/anomic/plasma/parser/vcf/vcfParser.java+++ b/source/de/anomic/plasma/parser/vcf/vcfParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 20.11.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -244,6 +247,7 @@ public class vcfParser extends AbstractParser implements Parser {}}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();diff --git a/source/de/anomic/plasma/parser/zip/zipParser.java b/source/de/anomic/plasma/parser/zip/zipParser.javaindex c6920ed36..7af35608b 100644--- a/source/de/anomic/plasma/parser/zip/zipParser.java+++ b/source/de/anomic/plasma/parser/zip/zipParser.java@@ -6,7 +6,10 @@//Frankfurt, Germany, 2005////this file is contributed by Martin Thelian-//last major change: 16.05.2005+//+// $LastChangedDate$+// $LastChangedRevision$+// $LastChangedBy$//last major change: 16.05.2005////This program is free software; you can redistribute it and/or modify//it under the terms of the GNU General Public License as published by@@ -214,6 +217,7 @@ public class zipParser extends AbstractParser implements Parser {}}+ @Overridepublic void reset() {// Nothing todo here at the momentsuper.reset();