Package akka.http.impl.engine.parsing
Class BoyerMoore
- java.lang.Object
-
- akka.http.impl.engine.parsing.BoyerMoore
-
public class BoyerMoore extends java.lang.Object
Straight-forward Boyer-Moore string search implementation.
-
-
Constructor Summary
Constructors Constructor Description BoyerMoore(byte[] needle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextIndex(akka.util.ByteString haystack, int offset)
Returns the index of the next occurrence ofneedle
inhaystack
that is >=offset
.
-
-
-
Method Detail
-
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)
-
-