- java.lang.Object
-
- org.nibor.autolink.Autolink
-
public class Autolink extends Object
Utility class for processing text with links.
-
-
Constructor Summary
Constructors Constructor Description Autolink()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
renderLinks(CharSequence input, Iterable<LinkSpan> links, LinkRenderer linkRenderer)
Deprecated.useLinkExtractor.extractSpans(CharSequence)
instead
-
-
-
Method Detail
-
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
-
-