Package org.nibor.autolink
Class Autolink
java.lang.Object
org.nibor.autolink.Autolink
Utility class for processing text with links.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
renderLinks
(CharSequence input, Iterable<LinkSpan> links, LinkRenderer linkRenderer) Deprecated.
-
Constructor Details
-
Autolink
public Autolink()
-
-
Method Details
-
renderLinks
@Deprecated public static String renderLinks(CharSequence input, Iterable<LinkSpan> links, LinkRenderer linkRenderer) Deprecated.useLinkExtractor.extractSpans(CharSequence)
insteadRender the supplied links from the supplied input text using a renderer. The parts of the text outside of links are added to the result without processing.- Parameters:
input
- the input text, must not be nulllinks
- the links to render, seeLinkExtractor
to extract themlinkRenderer
- the link rendering implementation- Returns:
- the rendered string
-
LinkExtractor.extractSpans(CharSequence)
instead