Class ByteProcessor.IndexOfProcessor
java.lang.Object
io.netty.util.ByteProcessor.IndexOfProcessor
- All Implemented Interfaces:
ByteProcessor
- Enclosing interface:
ByteProcessor
A
ByteProcessor which finds the first appearance of a specific byte.-
Nested Class Summary
Nested classes/interfaces inherited from interface ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor -
Field Summary
Fields inherited from interface ByteProcessor
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
IndexOfProcessor
public IndexOfProcessor(byte byteToFind)
-
-
Method Details
-
process
public boolean process(byte value) - Specified by:
processin interfaceByteProcessor- Returns:
trueif the processor wants to continue the loop and handle the next byte in the buffer.falseif the processor wants to stop handling bytes and abort the loop.
-