public class OutlinkExtractor
extends java.lang.Object
Outlink
s / URLs from
plain text using Regular Expressions.Constructor and Description |
---|
OutlinkExtractor() |
Modifier and Type | Method and Description |
---|---|
static Outlink[] |
getOutlinks(java.lang.String plainText,
Configuration conf)
Extracts
Outlink from given plain text. |
static Outlink[] |
getOutlinks(java.lang.String plainText,
java.lang.String anchor,
Configuration conf)
Extracts
Outlink from given plain text and adds anchor to the
extracted Outlink s |
public static Outlink[] getOutlinks(java.lang.String plainText, Configuration conf)
Outlink
from given plain text. Applying this method
to non-plain-text can result in extremely lengthy runtimes for parasitic
cases (postscript is a known example).plainText
- the plain text from wich URLs should be extracted.Outlink
s within found in plainTextpublic static Outlink[] getOutlinks(java.lang.String plainText, java.lang.String anchor, Configuration conf)
Outlink
from given plain text and adds anchor to the
extracted Outlink
splainText
- the plain text from wich URLs should be extracted.anchor
- the anchor of the urlOutlink
s within found in plainTextCopyright © 2019 The Apache Software Foundation