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
,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 class
AByteProcessor
which finds the first appearance which is not of a specific byte.static class
AByteProcessor
which finds the first appearance of a specific byte. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ByteProcessor
Aborts on a ascii space character (' '
).static final ByteProcessor
Aborts on a comma(',')
.static final ByteProcessor
Aborts on aCR ('\r')
.static final ByteProcessor
Aborts on aCR ('\r')
or aLF ('\n')
.static final ByteProcessor
Aborts on aLF ('\n')
.static final ByteProcessor
Aborts on a linear whitespace (a (' '
or a'\t'
).static final ByteProcessor
Aborts on a non-CR ('\r')
.static final ByteProcessor
Aborts on a byte which is neither aCR ('\r')
nor aLF ('\n')
.static final ByteProcessor
Aborts on a non-LF ('\n')
.static final ByteProcessor
Aborts on a byte which is not a linear whitespace (neither' '
nor'\t'
).static final ByteProcessor
Aborts on a non-NUL (0x00)
.static final ByteProcessor
Aborts on aNUL (0x00)
.static final ByteProcessor
Aborts 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:
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.- Throws:
Exception
-