| java.lang.Object de.anomic.plasma.parser.AbstractParser
All known Subclasses: de.anomic.plasma.parser.gzip.gzipParser, de.anomic.plasma.parser.bzip.bzipParser, de.anomic.plasma.parser.ppt.pptParser, de.anomic.plasma.parser.swf.swfParser, de.anomic.plasma.parser.sevenzip.sevenzipParser, de.anomic.plasma.parser.vcf.vcfParser, de.anomic.plasma.parser.odt.odtParser, de.anomic.plasma.parser.doc.docParser, de.anomic.plasma.parser.mimeType.mimeTypeParser, de.anomic.plasma.parser.ps.psParser, de.anomic.plasma.parser.rss.rssParser, de.anomic.plasma.parser.xls.xlsParser, de.anomic.plasma.parser.tar.tarParser, de.anomic.plasma.parser.rtf.rtfParser, de.anomic.plasma.parser.zip.zipParser, de.anomic.plasma.parser.pdf.pdfParser, de.anomic.plasma.parser.rpm.rpmParser,
AbstractParser | abstract public class AbstractParser implements Parser(Code) | | New classes implementing the
de.anomic.plasma.parser.Parser interface
can extend this class to inherit all functions already implemented in this class.
author: Martin Thelian version: $LastChangedRevision$ / $LastChangedDate$ |
Method Summary | |
final public static void | checkInterruption() Check if the parser was interrupted. | final public File | createTempFile(String name) | public String[] | getLibxDependences() | public String | getName() | public String | getVersion() | public plasmaParserDocument | parse(yacyURL location, String mimeType, String charset, byte[] source) Parsing a document available as byte array. | public plasmaParserDocument | parse(yacyURL location, String mimeType, String charset, File sourceFile) | abstract public plasmaParserDocument | parse(yacyURL location, String mimeType, String charset, InputStream source) | public int | parseDir(yacyURL location, String prefix, File dir, plasmaParserDocument doc) | public void | reset() | public void | setContentLength(long length) Set the content length of the source file. | public void | setLogger(serverLog log) Setting the logger that should be used by this parser class ... |
contentLength | protected long contentLength(Code) | | The source file file size in bytes if the source document was passed
in as file
|
libxDependencies | protected String[] libxDependencies(Code) | | a list of library names that are needed by this parser
|
parserVersionNr | protected String parserVersionNr(Code) | | Version number of the parser
|
theLogger | protected serverLog theLogger(Code) | | the logger class that should be used by the parser module for logging
purposes.
|
AbstractParser | public AbstractParser(String[] libxDependencies)(Code) | | The Constructor of this class.
|
getName | public String getName()(Code) | | Return the name of the parser
|
getVersion | public String getVersion()(Code) | | Returns the version number of the parser
parser version number |
reset | public void reset()(Code) | | |
setContentLength | public void setContentLength(long length)(Code) | | Set the content length of the source file.
This value is needed by some parsers to decide
if the parsed text could be hold in memory
|
setLogger | public void setLogger(serverLog log)(Code) | | Setting the logger that should be used by this parser class ...
|
|
|