org.nibor.autolink.internal.Scanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autolink Show documentation
Show all versions of autolink Show documentation
Java library to extract links (URLs, email addresses) from plain text;
fast, small and smart about recognizing where links end
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