public final class ByteArraySearcher extends Object
The masks are bit-sliced to reduce spatial requirement from ~2KB per matcher to ~256 bytes.
| Constructor and Description |
|---|
ByteArraySearcher(byte[] term)
Constructs a simple literal matcher from the input term.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(byte[] array)
Returns true if the array contains a literal match of this searcher's term.
|
Copyright © 2020. All rights reserved.