org.apache.nutch.parse.text
Class TextParser
java.lang.Object
org.apache.nutch.parse.text.TextParser
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, Parser, Pluggable
public class TextParser
- extends Object
- implements Parser
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextParser
public TextParser()
getParse
public ParseResult getParse(Content content)
- Parses plain text document. This code uses configured default encoding
parser.character.encoding.default if character set isn't specified
as HTTP header.
- Specified by:
getParse in interface Parser
- Parameters:
content - Content to be parsed
- Returns:
- a map containing <key, parse> pairs
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf in interface org.apache.hadoop.conf.Configurable
Copyright © 2006 The Apache Software Foundation