All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nibor.autolink.internal.Scanner Maven / Gradle / Ivy

Go to download

Java library to extract links (URLs, email addresses) from plain text; fast, small and smart about recognizing where links end

There is a newer version: 0.11.0
Show newest version
package org.nibor.autolink.internal;

import org.nibor.autolink.LinkSpan;

public interface Scanner {

    /**
     * @param input input text
     * @param triggerIndex the index at which the trigger character for this scanner was
     * @param rewindIndex the index that can maximally be rewound to (either the very first character of the input or
     * the character after the last matched link)
     * need to be set to be set here
     * @return the matched link, or {@code null} if no link matched
     */
    LinkSpan scan(CharSequence input, int triggerIndex, int rewindIndex);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy