public class UrlAutoLinker extends Object implements AutoLinker
| Constructor and Description |
|---|
UrlAutoLinker(int maxLabelLength)
Instantiate a new URL autolinker with a given maximum label length.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.jsoup.nodes.Node> |
createLinks(org.jsoup.nodes.TextNode textNode)
Gets the content of
node and tries to find linkable content. |
public UrlAutoLinker(int maxLabelLength)
maxLabelLength - Maximum length of the anchor text until it gets
truncatedpublic List<org.jsoup.nodes.Node> createLinks(org.jsoup.nodes.TextNode textNode)
AutoLinkernode and tries to find linkable content.
If content is found, create new text nodes before and after the content
and a new anchor element with the new link
createLinks in interface AutoLinkertextNode - The text node which may contain linkable textstextNodeCopyright © 2010–2016 michael-simons.eu. All rights reserved.