|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.io.KMPMatch
@Immutable public class KMPMatch
Knuth-Morris-Pratt Algorithm for Pattern Matching. Immutable
| Constructor Summary | |
|---|---|
KMPMatch(byte[] match)
Constructor |
|
| Method Summary | |
|---|---|
int |
getMatchLength()
|
int |
indexOf(byte[] data,
int start,
int max)
Finds the first occurrence of match in data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KMPMatch(byte[] match)
match - search for this byte pattern| Method Detail |
|---|
public 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]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||