Class LinkExtractor

    • Method Detail

      • extractSpans

        public Iterable<Span> extractSpans​(CharSequence input)
        Extract spans from the input text. A span is a substring of the input and represents either a link (see LinkSpan) or plain text outside a link.

        Using this is more convenient than extractLinks(java.lang.CharSequence) if you want to transform the whole input text to a different format.

        Parameters:
        input - the input text, must not be null
        Returns:
        a lazy iterable for the spans in order that they appear in the input, never null