Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- restructuring of mimeTypes based on the parsers - displaying parser usage count - displaying human readably parser names - displaying parser version information *) httpdFileHandler.java - adding possibility to support "streaming" servlets which are special servlets that can communicate with the client via the connection streams autonomous - the name of these new servlet types must end with the file extension .stream - this feature will be needed by the yacy ScreenSaver class to fetch statistic data from the peer without the need to reconnect to the server all the time *) Adding human readable names and version information for all supported parsers *) plasmaParser.java - adding new structure to store parser statistic data *) Adding openDocument parser - can be used to parse odt files *) jmimemagic - adding rules to detect openDocument formats properly *) serverLog.java - adding functions that can be used to query if a given logging level is enabled or not. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1140 6c8d7289-2bf4-0310-a012-ef5d649a1542
- Loading branch information
theli
committed
Nov 29, 2005
1 parent
3037c1e
commit bdf3011
Showing
24 changed files
with
735 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package de.anomic.plasma.parser; | ||
|
||
import java.util.Hashtable; | ||
|
||
public class ParserInfo { | ||
// general parser info | ||
public Class parserClass; | ||
public String parserClassName; | ||
|
||
public String parserName; | ||
public String parserVersionNr; | ||
|
||
// parser properties | ||
public String[] libxDependencies; | ||
public Hashtable supportedMimeTypes; | ||
|
||
// usage statistic | ||
public int usageCount = 0; | ||
|
||
public String toString() { | ||
StringBuffer toStr = new StringBuffer(); | ||
|
||
toStr.append(this.parserName).append(" V") | ||
.append((this.parserVersionNr==null)?"0.0":this.parserVersionNr).append(" | ") | ||
.append(this.parserClassName).append(" | ") | ||
.append(this.supportedMimeTypes); | ||
|
||
return toStr.toString(); | ||
} | ||
|
||
public synchronized void incUsageCounter() { | ||
this.usageCount++; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.