Package akka.http.impl.engine.parsing
Class BoyerMoore
java.lang.Object
akka.http.impl.engine.parsing.BoyerMoore
Straight-forward Boyer-Moore string search implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
nextIndex
(akka.util.ByteString haystack, int offset) Returns the index of the next occurrence ofneedle
inhaystack
that is >=offset
.
-
Constructor Details
-
BoyerMoore
public BoyerMoore(byte[] needle)
-
-
Method Details
-
nextIndex
public int nextIndex(akka.util.ByteString haystack, int offset) Returns the index of the next occurrence ofneedle
inhaystack
that is >=offset
. If none is found aNotEnoughDataException
is thrown.- Parameters:
haystack
- (undocumented)offset
- (undocumented)- Returns:
- (undocumented)
-