Class TikaLinkExtractor
java.lang.Object
com.norconex.crawler.web.doc.operations.link.impl.TikaLinkExtractor
- All Implemented Interfaces:
Configurable<TikaLinkExtractorConfig>,LinkExtractor
public class TikaLinkExtractor
extends Object
implements LinkExtractor, Configurable<TikaLinkExtractorConfig>
Implementation of LinkExtractor using
Apache Tika to perform URL
extractions from HTML documents.
This is an alternative to the HtmlLinkExtractor or even
DomLinkExtractor.
The configuration of content-types, storing the referrer data, and ignoring
"nofollow" and ignoring link data are the same as in
HtmlLinkExtractor. For link data, this parser only keeps a
pre-defined set of link attributes, when available (title, type,
uri, text, rel).
- See Also:
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanextractLinks(Doc doc) inthashCode()toString()
-
Constructor Details
-
TikaLinkExtractor
public TikaLinkExtractor()
-
-
Method Details
-
extractLinks
- Specified by:
extractLinksin interfaceLinkExtractor- Throws:
IOException
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<TikaLinkExtractorConfig>
-