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,HttpChunkLineValidatingByteProcessor,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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAByteProcessorwhich finds the first appearance which is not of a specific byte.static classAByteProcessorwhich finds the first appearance of a specific byte. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteProcessorAborts on a ascii space character (' ').static final ByteProcessorAborts on a comma(',').static final ByteProcessorAborts on aCR ('\r').static final ByteProcessorAborts on aCR ('\r')or aLF ('\n').static final ByteProcessorAborts on aLF ('\n').static final ByteProcessorAborts on a linear whitespace (a (' 'or a'\t').static final ByteProcessorAborts on a non-CR ('\r').static final ByteProcessorAborts on a byte which is neither aCR ('\r')nor aLF ('\n').static final ByteProcessorAborts on a non-LF ('\n').static final ByteProcessorAborts on a byte which is not a linear whitespace (neither' 'nor'\t').static final ByteProcessorAborts on a non-NUL (0x00).static final ByteProcessorAborts on aNUL (0x00).static final ByteProcessorAborts on a semicolon(';'). -
Method Summary
-
Field Details
-
FIND_NUL
Aborts on aNUL (0x00). -
FIND_NON_NUL
Aborts on a non-NUL (0x00). -
FIND_CR
Aborts on aCR ('\r'). -
FIND_NON_CR
Aborts on a non-CR ('\r'). -
FIND_LF
Aborts on aLF ('\n'). -
FIND_NON_LF
Aborts on a non-LF ('\n'). -
FIND_SEMI_COLON
Aborts on a semicolon(';'). -
FIND_COMMA
Aborts on a comma(','). -
FIND_ASCII_SPACE
Aborts on a ascii space character (' '). -
FIND_CRLF
Aborts on aCR ('\r')or aLF ('\n'). -
FIND_NON_CRLF
Aborts on a byte which is neither aCR ('\r')nor aLF ('\n'). -
FIND_LINEAR_WHITESPACE
Aborts on a linear whitespace (a (' 'or a'\t'). -
FIND_NON_LINEAR_WHITESPACE
Aborts on a byte which is not a linear whitespace (neither' 'nor'\t').
-
-
Method Details
-
process
- 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.- Throws:
Exception
-