Class BoyerMoore

java.lang.Object
org.apache.pekko.http.impl.engine.parsing.BoyerMoore

public class BoyerMoore extends Object
Straight-forward Boyer-Moore string search implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BoyerMoore(byte[] needle)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    nextIndex(org.apache.pekko.util.ByteString haystack, int offset)
    Returns the index of the next occurrence of needle in haystack that is >= offset.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BoyerMoore

      public BoyerMoore(byte[] needle)
  • Method Details

    • nextIndex

      public int nextIndex(org.apache.pekko.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)