public static class LinkExtractor.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
LinkExtractor |
build() |
LinkExtractor.Builder |
emailDomainMustHaveDot(boolean emailDomainMustHaveDot) |
LinkExtractor.Builder |
linkTypes(Set<LinkType> linkTypes) |
public LinkExtractor.Builder linkTypes(Set<LinkType> linkTypes)
linkTypes - the link types that should be extracted (by default, all types are extracted)public LinkExtractor.Builder emailDomainMustHaveDot(boolean emailDomainMustHaveDot)
emailDomainMustHaveDot - true if the domain in an email address is required to have more than one part,
false if it can also just have single part (e.g. foo@com); true by defaultpublic LinkExtractor build()
Copyright © 2016. All rights reserved.