Top Methods
org.nibor.autolink.internal

public Interface Scanner

Known Direct Implementers
org.nibor.autolink.internal.UrlScanner, org.nibor.autolink.internal.WwwScanner, org.nibor.autolink.internal.EmailScanner
Imports
org.nibor.autolink.LinkSpan

Method Summary

Modifier and TypeMethod and Description
public LinkSpan

Returns:

the matched link, or null if no link matched
scan
(CharSequence
input text
input
,
int
the index at which the trigger character for this scanner was
triggerIndex
,
int
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
rewindIndex
)

Method Detail

scanback to summary
public LinkSpan scan(CharSequence input, int triggerIndex, int rewindIndex)
Parameters
input:CharSequence

input text

triggerIndex:int

the index at which the trigger character for this scanner was

rewindIndex:int

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:LinkSpan

the matched link, or null if no link matched