public class UrlDetector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UrlDetector.ReadEndState
The states to use to continue writing or not.
|
| Constructor and Description |
|---|
UrlDetector(String content,
UrlDetectorOptions options)
Creates a new UrlDetector object used to find urls inside of text.
|
| Modifier and Type | Method and Description |
|---|---|
List<Url> |
detect()
Detects the urls and returns a list of detected url strings.
|
int |
getBacktracked()
Gets the number of characters that were backtracked while reading the input.
|
public UrlDetector(String content, UrlDetectorOptions options)
content - The content to search inside of.options - The UrlDetectorOptions to use when detecting the content.Copyright © 2016. All rights reserved.