public class ParseUtil extends Configured
Parsers to obtain
Parse objects.| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ParseUtil(Configuration conf) |
public ParseUtil(Configuration conf)
conf - public Configuration getConf()
getConf in interface ConfigurablegetConf in class Configuredpublic void setConf(Configuration conf)
setConf in interface ConfigurablesetConf in class Configuredpublic Parse parse(String url, WebPage page) throws ParserNotFound, ParseException
Parsers
until a successful parse is performed and a Parse object is
returned. If the parse is unsuccessful, a message is logged to the
WARNING level, and an empty parse is returned.ParserNotFound - If there is no suitable parser found.ParseException - If there is an error parsing.Copyright © 2015 The Apache Software Foundation