Based on RFC 6531, but also scans invalid IDN. Doesn't match IP address in domain part or quoting in local part.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| private boolean | |
| public LinkSpan | 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)Implements org.
|
| private boolean |
| domainMustHaveDot | back to summary |
|---|---|
| private final boolean domainMustHaveDot | |
| EmailScanner | back to summary |
|---|---|
| public EmailScanner(boolean domainMustHaveDot) | |
| findFirst | back to summary |
|---|---|
| private int findFirst(CharSequence input, int beginIndex, int rewindIndex) | |
| findLast | back to summary |
|---|---|
| private int findLast(CharSequence input, int beginIndex) | |
| localAtomAllowed | back to summary |
|---|---|
| private boolean localAtomAllowed(char c) | |
| scan | back to summary |
|---|---|
| public LinkSpan scan(CharSequence input, int triggerIndex, int rewindIndex) Implements org.
| |
| subDomainAllowed | back to summary |
|---|---|
| private boolean subDomainAllowed(char c) | |