mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
bdf30117c1
- 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
35 lines
931 B
Java
35 lines
931 B
Java
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++;
|
|
}
|
|
}
|