@Immutable public class KMPMatch extends Object
Constructor and Description |
---|
KMPMatch(byte[] match)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getMatchLength() |
int |
indexOf(byte[] data,
int start,
int max)
Finds the first occurrence of match in data.
|
public KMPMatch(byte[] match)
match
- search for this byte patternpublic int getMatchLength()
public int indexOf(byte[] data, int start, int max)
data
- search in this byte blockstart
- start at data[start]max
- end at data[start+max]