public class ParseUtil extends Configured
Parser
s 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 Configurable
getConf
in class Configured
public void setConf(Configuration conf)
setConf
in interface Configurable
setConf
in class Configured
public Parse parse(String url, WebPage page) throws ParserNotFound, ParseException
Parser
s
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