Interface ChannelBufferIndexFinder


public interface ChannelBufferIndexFinder
Locates an index of data in a ChannelBuffer.

This interface enables the sequential search for the data which meets more complex and dynamic condition than just a simple value matching. Please refer to ChannelBuffer.indexOf(int, int, ChannelBufferIndexFinder) and ChannelBuffer.bytesBefore(int, int, ChannelBufferIndexFinder) for more explanation.

  • Field Details

  • Method Details

    • find

      boolean find(ChannelBuffer buffer, int guessedIndex)
      Returns true if and only if the data is found at the specified guessedIndex of the specified buffer.

      The implementation should not perform an operation which raises an exception such as IndexOutOfBoundsException nor perform an operation which modifies the content of the buffer.