You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/source/de/anomic/plasma/parser/ParserInfo.java

35 lines
931 B

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++;
}
}