Class BoyerMoore

java.lang.Object
akka.http.impl.engine.parsing.BoyerMoore

public class BoyerMoore extends Object
Straight-forward Boyer-Moore string search implementation.
  • 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 of needle in haystack that is >= offset. If none is found a NotEnoughDataException is thrown.
      Parameters:
      haystack - (undocumented)
      offset - (undocumented)
      Returns:
      (undocumented)