public static class KmpSearchProcessorFactory.Processor extends java.lang.Object implements SearchProcessor
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
限定符和类型 | 方法和说明 |
---|---|
boolean |
process(byte value) |
void |
reset()
Resets the state of SearchProcessor.
|
public boolean process(byte value)
process
在接口中 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.public void reset()
SearchProcessor
reset
在接口中 SearchProcessor