-
- All Known Implementing Classes:
ByteProcessor.IndexNotOfProcessor
,ByteProcessor.IndexOfProcessor
public interface ByteProcessor
Provides a mechanism to iterate over a collection of bytes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ByteProcessor.IndexNotOfProcessor
AByteProcessor
which finds the first appearance which is not of a specific byte.static class
ByteProcessor.IndexOfProcessor
AByteProcessor
which finds the first appearance of a specific byte.
-
Field Summary
Fields Modifier and Type Field Description static ByteProcessor
FIND_ASCII_SPACE
Aborts on a ascii space character (' '
).static ByteProcessor
FIND_COMMA
Aborts on a comma(',')
.static ByteProcessor
FIND_CR
Aborts on aCR ('\r')
.static ByteProcessor
FIND_CRLF
Aborts on aCR ('\r')
or aLF ('\n')
.static ByteProcessor
FIND_LF
Aborts on aLF ('\n')
.static ByteProcessor
FIND_LINEAR_WHITESPACE
Aborts on a linear whitespace (a (' '
or a'\t'
).static ByteProcessor
FIND_NON_CR
Aborts on a non-CR ('\r')
.static ByteProcessor
FIND_NON_CRLF
Aborts on a byte which is neither aCR ('\r')
nor aLF ('\n')
.static ByteProcessor
FIND_NON_LF
Aborts on a non-LF ('\n')
.static ByteProcessor
FIND_NON_LINEAR_WHITESPACE
Aborts on a byte which is not a linear whitespace (neither' '
nor'\t'
).static ByteProcessor
FIND_NON_NUL
Aborts on a non-NUL (0x00)
.static ByteProcessor
FIND_NUL
Aborts on aNUL (0x00)
.static ByteProcessor
FIND_SEMI_COLON
Aborts on a semicolon(';')
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
process(byte value)
-
-
-
Field Detail
-
FIND_NUL
static final ByteProcessor FIND_NUL
Aborts on aNUL (0x00)
.
-
FIND_NON_NUL
static final ByteProcessor FIND_NON_NUL
Aborts on a non-NUL (0x00)
.
-
FIND_CR
static final ByteProcessor FIND_CR
Aborts on aCR ('\r')
.
-
FIND_NON_CR
static final ByteProcessor FIND_NON_CR
Aborts on a non-CR ('\r')
.
-
FIND_LF
static final ByteProcessor FIND_LF
Aborts on aLF ('\n')
.
-
FIND_NON_LF
static final ByteProcessor FIND_NON_LF
Aborts on a non-LF ('\n')
.
-
FIND_SEMI_COLON
static final ByteProcessor FIND_SEMI_COLON
Aborts on a semicolon(';')
.
-
FIND_COMMA
static final ByteProcessor FIND_COMMA
Aborts on a comma(',')
.
-
FIND_ASCII_SPACE
static final ByteProcessor FIND_ASCII_SPACE
Aborts on a ascii space character (' '
).
-
FIND_CRLF
static final ByteProcessor FIND_CRLF
Aborts on aCR ('\r')
or aLF ('\n')
.
-
FIND_NON_CRLF
static final ByteProcessor FIND_NON_CRLF
Aborts on a byte which is neither aCR ('\r')
nor aLF ('\n')
.
-
FIND_LINEAR_WHITESPACE
static final ByteProcessor FIND_LINEAR_WHITESPACE
Aborts on a linear whitespace (a (' '
or a'\t'
).
-
FIND_NON_LINEAR_WHITESPACE
static final ByteProcessor FIND_NON_LINEAR_WHITESPACE
Aborts on a byte which is not a linear whitespace (neither' '
nor'\t'
).
-
-