IndexOfProcessor

A {@link ByteProcessor} which finds the first appearance of a specific byte.

Constructors

this
this(byte byteToFind)
Undocumented in source.

Members

Functions

process
bool process(byte value)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ByteProcessor

SPACE
enum byte SPACE;
Undocumented in source.
HTAB
enum byte HTAB;
Undocumented in source.
CARRIAGE_RETURN
enum byte CARRIAGE_RETURN;
Undocumented in source.
LINE_FEED
enum byte LINE_FEED;
Undocumented in source.
FIND_NUL
ByteProcessor FIND_NUL()

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

FIND_NON_NUL
ByteProcessor FIND_NON_NUL()

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

FIND_CR
ByteProcessor FIND_CR()

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

FIND_NON_CR
ByteProcessor FIND_NON_CR()

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

FIND_LF
ByteProcessor FIND_LF()

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

FIND_NON_LF
ByteProcessor FIND_NON_LF()

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

FIND_SEMI_COLON
ByteProcessor FIND_SEMI_COLON()

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

FIND_COMMA
ByteProcessor FIND_COMMA()

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

FIND_ASCII_SPACE
ByteProcessor FIND_ASCII_SPACE()

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

FIND_CRLF
ByteProcessor FIND_CRLF()

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

FIND_NON_CRLF
ByteProcessor FIND_NON_CRLF()

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

FIND_LINEAR_WHITESPACE
ByteProcessor FIND_LINEAR_WHITESPACE()

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

FIND_NON_LINEAR_WHITESPACE
ByteProcessor FIND_NON_LINEAR_WHITESPACE()

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

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.

Meta