public abstract class BaseParser extends Object implements LinkExtractorParser
LinkExtractorParser
It is advised to make subclasses reusable across parsing, so BaseParser
isReusable()
returns true by defaultConstructor and Description |
---|
BaseParser()
Constructor for BaseParser
|
Modifier and Type | Method and Description |
---|---|
static LinkExtractorParser |
getParser(String parserClassName)
Factory method of parsers.
|
boolean |
isReusable()
Parsers should over-ride this method if the parser class is re-usable, in
which case the class will be cached for the next getParser() call.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEmbeddedResourceURLs
public static LinkExtractorParser getParser(String parserClassName) throws LinkExtractorParseException
LinkExtractorParser.isReusable()
on the newly created instance
equals true
.parserClassName
- name of the class that should be used to create new parsersLinkExtractorParser
LinkExtractorParseException
- when a new instance could not be instantiatedpublic boolean isReusable()
isReusable
in interface LinkExtractorParser
true
if the Parser is reusableCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.