Scanner.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| public static final int | SUGGESTED_MAX_LITERAL_SIZE
is 1024. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: zero-based offset into stream at whichsearchstr is
found; -1 if not found, reader is null, or
searchstr is null; 0 if searchstr.length() == 0
&& literal == true.to search reader, char[] to find searchstr, boolean true to treat literal)searchstr as a literal search
term; false to treat searchstr as a regular
expression.the given |
| public static long | Returns: zero-based offset into stream at whichsearchstr is
found; -1 if not found, reader is null, or
searchstr is null; 0 if searchstr.length() == 0
&& literal == true.to search reader, String to find searchstr, boolean true to treat literal)searchstr as a literal search
term; false to treat searchstr as a regular
expression.the given |
| public static long | |
| private static long | Returns: zero-based offset into stream at whichsearchstr is
found; -1 if not found;to search reader, Pattern to find pattern)the given |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| SUGGESTED_MAX_LITERAL_SIZE | back to summary |
|---|---|
| public static final int SUGGESTED_MAX_LITERAL_SIZE is 1024. This is the size above which it may be better to use
| |
| ScannerSearchAlgorithm | back to summary |
|---|---|
| private ScannerSearchAlgorithm() | |
| search | back to summary |
|---|---|
| public static long search(Reader reader, char[] searchstr, boolean literal) the given
| |
| search | back to summary |
|---|---|
| public static long search(Reader reader, String searchstr, boolean literal) throws NullPointerException, PatternSyntaxException, IllegalStateException, IllegalArgumentException the given
| |
| search | back to summary |
|---|---|
| public static long search(Reader reader, Pattern pattern) throws IllegalStateException, IllegalArgumentException the given
| |
| searchNoChecks | back to summary |
|---|---|
| private static long searchNoChecks(Reader reader, Pattern pattern) throws IllegalStateException, IllegalArgumentException the given
| |