Interface ByteProcessor

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface ByteProcessor
    Provides a mechanism to iterate over a collection of bytes.
    • Method Detail

      • process

        boolean process​(byte value)
        Process bytes until returns false.
        value - the byte to process.
        true if the consumer wants to continue the loop and handle the next byte in the buffer. false if the consumer wants to stop handling bytes and abort the loop.