Package io.netty.util

Interface ByteProcessor

All Known Subinterfaces:
ByteBufProcessor, MultiSearchProcessor, SearchProcessor
All Known Implementing Classes:
AhoCorasicSearchProcessorFactory.Processor, Base64.Decoder, BitapSearchProcessorFactory.Processor, ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor, HpackHuffmanDecoder, HpackHuffmanEncoder.EncodedLengthProcessor, HpackHuffmanEncoder.EncodeProcessor, HttpPostStandardRequestDecoder.UrlDecoder, HttpPostStandardRequestDecoder.UrlEncodedDetector, KmpSearchProcessorFactory.Processor, RedisDecoder.ToPositiveLongProcessor, StompSubframeDecoder.HeaderParser, StompSubframeDecoder.Utf8LineParser, Utf8Validator

public interface ByteProcessor
Provides a mechanism to iterate over a collection of bytes.
  • Field Details

    • FIND_NUL

      static final ByteProcessor FIND_NUL
      Aborts on a NUL (0x00).
    • FIND_NON_NUL

      static final ByteProcessor FIND_NON_NUL
      Aborts on a non-NUL (0x00).
    • FIND_CR

      static final ByteProcessor FIND_CR
      Aborts on a CR ('\r').
    • FIND_NON_CR

      static final ByteProcessor FIND_NON_CR
      Aborts on a non-CR ('\r').
    • FIND_LF

      static final ByteProcessor FIND_LF
      Aborts on a LF ('\n').
    • FIND_NON_LF

      static final ByteProcessor FIND_NON_LF
      Aborts on a non-LF ('\n').
    • FIND_SEMI_COLON

      static final ByteProcessor FIND_SEMI_COLON
      Aborts on a semicolon (';').
    • FIND_COMMA

      static final ByteProcessor FIND_COMMA
      Aborts on a comma (',').
    • FIND_ASCII_SPACE

      static final ByteProcessor FIND_ASCII_SPACE
      Aborts on a ascii space character (' ').
    • FIND_CRLF

      static final ByteProcessor FIND_CRLF
      Aborts on a CR ('\r') or a LF ('\n').
    • FIND_NON_CRLF

      static final ByteProcessor FIND_NON_CRLF
      Aborts on a byte which is neither a CR ('\r') nor a LF ('\n').
    • FIND_LINEAR_WHITESPACE

      static final ByteProcessor FIND_LINEAR_WHITESPACE
      Aborts on a linear whitespace (a (' ' or a '\t').
    • FIND_NON_LINEAR_WHITESPACE

      static final ByteProcessor FIND_NON_LINEAR_WHITESPACE
      Aborts on a byte which is not a linear whitespace (neither ' ' nor '\t').
  • Method Details

    • process

      boolean process(byte value) throws Exception
      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.
      Throws:
      Exception