Class 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 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 Detail

      • BoyerMoore

        public BoyerMoore​(byte[] needle)
    • Method Detail

      • 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)