Class KmpSearchProcessorFactory.Processor

    • Field Detail

      • needle

        private final byte[] needle
      • jumpTable

        private final int[] jumpTable
      • currentPosition

        private long currentPosition
    • Constructor Detail

      • Processor

        Processor​(byte[] needle,
                  int[] jumpTable)
    • Method Detail

      • process

        public boolean process​(byte value)
        Specified by:
        process in interface ByteProcessor
        Returns:
        true if the processor wants to continue the loop and handle the next byte in the buffer. false if the processor wants to stop handling bytes and abort the loop.