Top Description Inners Fields Methods
io.netty.util

public Interface ByteProcessor

Known Direct Implementers
io.netty.util.ByteProcessor.IndexOfProcessor, io.netty.util.ByteProcessor.IndexNotOfProcessor
Static Imports
io.netty.util.ByteProcessorUtils.CARRIAGE_RETURN, .ByteProcessorUtils.HTAB, .ByteProcessorUtils.LINE_FEED, .ByteProcessorUtils.SPACE

Provides a mechanism to iterate over a collection of bytes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ByteProcessor.IndexNotOfProcessor

A ByteProcessor which finds the first appearance which is not of a specific byte.

public static class
ByteProcessor.IndexOfProcessor

A ByteProcessor which finds the first appearance of a specific byte.

Field Summary

Modifier and TypeField and Description
public static final ByteProcessor
FIND_ASCII_SPACE

Aborts on a ascii space character (' ').

public static final ByteProcessor
FIND_COMMA

Aborts on a comma (',').

public static final ByteProcessor
FIND_CR

Aborts on a CR ('\r').

public static final ByteProcessor
FIND_CRLF

Aborts on a CR ('\r') or a LF ('\n').

public static final ByteProcessor
FIND_LF

Aborts on a LF ('\n').

public static final ByteProcessor
FIND_LINEAR_WHITESPACE

Aborts on a linear whitespace (a (' ' or a '\t').

public static final ByteProcessor
FIND_NON_CR

Aborts on a non-CR ('\r').

public static final ByteProcessor
FIND_NON_CRLF

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

public static final ByteProcessor
FIND_NON_LF

Aborts on a non-LF ('\n').

public static final ByteProcessor
FIND_NON_LINEAR_WHITESPACE

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

public static final ByteProcessor
FIND_NON_NUL

Aborts on a non-NUL (0x00).

public static final ByteProcessor
FIND_NUL

Aborts on a NUL (0x00).

public static final ByteProcessor
FIND_SEMI_COLON

Aborts on a semicolon (';').

Method Summary

Modifier and TypeMethod and Description
public boolean

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.
process
(byte value)

Field Detail

FIND_ASCII_SPACEback to summary
public static final ByteProcessor FIND_ASCII_SPACE

Aborts on a ascii space character (' ').

FIND_COMMAback to summary
public static final ByteProcessor FIND_COMMA

Aborts on a comma (',').

FIND_CRback to summary
public static final ByteProcessor FIND_CR

Aborts on a CR ('\r').

FIND_CRLFback to summary
public static final ByteProcessor FIND_CRLF

Aborts on a CR ('\r') or a LF ('\n').

FIND_LFback to summary
public static final ByteProcessor FIND_LF

Aborts on a LF ('\n').

FIND_LINEAR_WHITESPACEback to summary
public static final ByteProcessor FIND_LINEAR_WHITESPACE

Aborts on a linear whitespace (a (' ' or a '\t').

FIND_NON_CRback to summary
public static final ByteProcessor FIND_NON_CR

Aborts on a non-CR ('\r').

FIND_NON_CRLFback to summary
public static final ByteProcessor FIND_NON_CRLF

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

FIND_NON_LFback to summary
public static final ByteProcessor FIND_NON_LF

Aborts on a non-LF ('\n').

FIND_NON_LINEAR_WHITESPACEback to summary
public static final ByteProcessor FIND_NON_LINEAR_WHITESPACE

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

FIND_NON_NULback to summary
public static final ByteProcessor FIND_NON_NUL

Aborts on a non-NUL (0x00).

FIND_NULback to summary
public static final ByteProcessor FIND_NUL

Aborts on a NUL (0x00).

FIND_SEMI_COLONback to summary
public static final ByteProcessor FIND_SEMI_COLON

Aborts on a semicolon (';').

Method Detail

processback to summary
public boolean process(byte value) throws Exception
Returns:boolean

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.

io.netty.util back to summary

public Class ByteProcessor.IndexNotOfProcessor

extends Object
implements ByteProcessor
Class Inheritance
All Implemented Interfaces
io.netty.util.ByteProcessor

A ByteProcessor which finds the first appearance which is not of a specific byte.

Field Summary

Modifier and TypeField and Description
private final byte

Constructor Summary

AccessConstructor and Description
public
IndexNotOfProcessor(byte byteToNotFind)

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

byteToNotFindback to summary
private final byte byteToNotFind

Constructor Detail

IndexNotOfProcessorback to summary
public IndexNotOfProcessor(byte byteToNotFind)

Method Detail

processback to summary
public boolean process(byte value)

Implements io.netty.util.ByteProcessor.process.

Returns:boolean

Doc from io.netty.util.ByteProcessor.process.

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.

Annotations
@Override
io.netty.util back to summary

public Class ByteProcessor.IndexOfProcessor

extends Object
implements ByteProcessor
Class Inheritance
All Implemented Interfaces
io.netty.util.ByteProcessor

A ByteProcessor which finds the first appearance of a specific byte.

Field Summary

Modifier and TypeField and Description
private final byte

Constructor Summary

AccessConstructor and Description
public
IndexOfProcessor(byte byteToFind)

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

byteToFindback to summary
private final byte byteToFind

Constructor Detail

IndexOfProcessorback to summary
public IndexOfProcessor(byte byteToFind)

Method Detail

processback to summary
public boolean process(byte value)

Implements io.netty.util.ByteProcessor.process.

Returns:boolean

Doc from io.netty.util.ByteProcessor.process.

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.

Annotations
@Override