public class SearchTextInLines
extends java.lang.Object
SearchTextInLinesResult| Constructor and Description |
|---|
SearchTextInLines(java.lang.String content)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLimitMaxResults()
Get the limit of the maximum number of search results.
|
java.util.List<java.lang.String> |
getLines()
Get the lines of the content, splitted by '\n', without trailing '\r'.
|
boolean |
isLimitMaxResultsReached()
Get if the limit of max search results was reached.
|
java.util.List<SearchTextInLinesResult> |
performSearch(java.lang.String text,
boolean ignoreCase)
Perform the search.
|
void |
setLimitMaxResults(int limitMaxResults)
Set the limit of the maximum number of search results (default = -1 = unlimited).
|
public SearchTextInLines(java.lang.String content)
content - the contentpublic int getLimitMaxResults()
public void setLimitMaxResults(int limitMaxResults)
limitMaxResults - the limit of the maximum number of search results, or -1 = unlimitedjava.lang.IllegalArgumentException - if the limit of the maximum number of search results is 0 (zero)public java.util.List<SearchTextInLinesResult> performSearch(java.lang.String text, boolean ignoreCase)
text - the text to searchignoreCase - if true = ignore casepublic java.util.List<java.lang.String> getLines()
public boolean isLimitMaxResultsReached()