Package org.nibor.autolink.internal
Interface Scanner
-
- All Known Implementing Classes:
EmailScanner
,UrlScanner
,WwwScanner
public interface Scanner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LinkSpan
scan(java.lang.CharSequence input, int triggerIndex, int rewindIndex)
-
-
-
Method Detail
-
scan
LinkSpan scan(java.lang.CharSequence input, int triggerIndex, int rewindIndex)
- Parameters:
input
- input texttriggerIndex
- the index at which the trigger character for this scanner wasrewindIndex
- 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- Returns:
- the matched link, or
null
if no link matched
-
-