public static class ByteProcessor.IndexOfProcessor extends Object implements ByteProcessor
ByteProcessor
which finds the first appearance of a specific byte.ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor
FIND_ASCII_SPACE, FIND_COMMA, FIND_CR, FIND_CRLF, FIND_LF, FIND_LINEAR_WHITESPACE, FIND_NON_CR, FIND_NON_CRLF, FIND_NON_LF, FIND_NON_LINEAR_WHITESPACE, FIND_NON_NUL, FIND_NUL, FIND_SEMI_COLON
Constructor and Description |
---|
IndexOfProcessor(byte byteToFind) |
public boolean process(byte value)
process
in interface ByteProcessor
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.Copyright © 2008–2019 The Netty Project. All rights reserved.