public abstract class BaseParser extends Object implements LinkExtractorParser
LinkExtractorParser
 It is advised to make subclasses reusable across parsing, so BaseParserisReusable() returns true by default| Constructor 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, waitgetEmbeddedResourceURLspublic 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 parsersLinkExtractorParserLinkExtractorParseException - when a new instance could not be instantiatedpublic boolean isReusable()
isReusable in interface LinkExtractorParsertrue if the Parser is reusableCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.