Package io.netty.util

Class ByteProcessor.IndexNotOfProcessor

java.lang.Object
io.netty.util.ByteProcessor.IndexNotOfProcessor
All Implemented Interfaces:
ByteProcessor
Enclosing interface:
ByteProcessor

public static class ByteProcessor.IndexNotOfProcessor extends Object implements ByteProcessor
A ByteProcessor which finds the first appearance which is not of a specific byte.
  • Field Details

    • byteToNotFind

      private final byte byteToNotFind
  • Constructor Details

    • IndexNotOfProcessor

      public IndexNotOfProcessor(byte byteToNotFind)
  • Method Details

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