ByteProcessor

Provides a mechanism to iterate over a collection of bytes.

Members

Functions

process
bool process(byte value)

@return {@code true} if the processor wants to continue the loop and handle the next byte in the buffer. {@code false} if the processor wants to stop handling bytes and abort the loop.

Static functions

FIND_ASCII_SPACE
ByteProcessor FIND_ASCII_SPACE()

Aborts on a ascii space character ({@code ' '}).

FIND_COMMA
ByteProcessor FIND_COMMA()

Aborts on a comma {@code (',')}.

FIND_CR
ByteProcessor FIND_CR()

Aborts on a {@code CR ('\r')}.

FIND_CRLF
ByteProcessor FIND_CRLF()

Aborts on a {@code CR ('\r')} or a {@code LF ('\n')}.

FIND_LF
ByteProcessor FIND_LF()

Aborts on a {@code LF ('\n')}.

FIND_LINEAR_WHITESPACE
ByteProcessor FIND_LINEAR_WHITESPACE()

Aborts on a linear whitespace (a ({@code ' '} or a {@code '\t'}).

FIND_NON_CR
ByteProcessor FIND_NON_CR()

Aborts on a non-{@code CR ('\r')}.

FIND_NON_CRLF
ByteProcessor FIND_NON_CRLF()

Aborts on a byte which is neither a {@code CR ('\r')} nor a {@code LF ('\n')}.

FIND_NON_LF
ByteProcessor FIND_NON_LF()

Aborts on a non-{@code LF ('\n')}.

FIND_NON_LINEAR_WHITESPACE
ByteProcessor FIND_NON_LINEAR_WHITESPACE()

Aborts on a byte which is not a linear whitespace (neither {@code ' '} nor {@code '\t'}).

FIND_NON_NUL
ByteProcessor FIND_NON_NUL()

Aborts on a non-{@code NUL (0x00)}.

FIND_NUL
ByteProcessor FIND_NUL()

Aborts on a {@code NUL (0x00)}.

FIND_SEMI_COLON
ByteProcessor FIND_SEMI_COLON()

Aborts on a semicolon {@code (';')}.

Variables

CARRIAGE_RETURN
enum byte CARRIAGE_RETURN;
Undocumented in source.
HTAB
enum byte HTAB;
Undocumented in source.
LINE_FEED
enum byte LINE_FEED;
Undocumented in source.
SPACE
enum byte SPACE;
Undocumented in source.

Meta