public class LStringSearcher
extends java.lang.Object
Constructor and Description |
---|
LStringSearcher(java.lang.String... targets_)
Creates an LStringSearcher object that will look for the given target strings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
next(char in)
Inform the searcher of the next input, and receive feedback if something was found.
|
java.lang.String |
next(char in,
java.io.BufferedInputStream input)
Specialized next function that marks the stream unless a portion of a target is
found, which allows you to reset and get to the stream at the start of the target
once one is found.
|
java.lang.String |
next(int in)
Inform the searcher of the next input, and receive feedback if something was found.
|
java.lang.String |
next(int in,
java.io.BufferedInputStream input)
Specialized next function that marks the stream unless a portion of a target is
found, which allows you to reset and get to the stream at the start of the target
once one is found.
|
public LStringSearcher(java.lang.String... targets_)
targets_
- Strings to look for.public java.lang.String next(int in)
in
- The next inputpublic java.lang.String next(char in)
in
- The next inputpublic java.lang.String next(int in, java.io.BufferedInputStream input)
in
- The next inputinput
- Stream to mark.public java.lang.String next(char in, java.io.BufferedInputStream input)
in
- The next inputinput
- Stream to mark.