|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
public interface ChannelBufferIndexFinder

定位数据在ChannelBuffer中的索引.
该接口提供比简单值匹配方式查找数据更复杂、更动态的顺序查找方式. 请参阅
ChannelBuffer.indexOf(int, int, ChannelBufferIndexFinder) 和
ChannelBuffer.bytesBefore(int, int, ChannelBufferIndexFinder)了解更多.
| 字段摘要 | |
|---|---|
static ChannelBufferIndexFinder |
CR
一个 CR ('\r')字节的索引查找器. |
static ChannelBufferIndexFinder |
CRLF
一个 CR ('\r')或LF ('\n')的索引查找器. |
static ChannelBufferIndexFinder |
LF
一个 LF ('\n')字节的索引查找器. |
static ChannelBufferIndexFinder |
LINEAR_WHITESPACE
一个连续空格( ' '和'\t')的索引查找器. |
static ChannelBufferIndexFinder |
NOT_CR
一个非 CR ('\r')字节的索引查找器. |
static ChannelBufferIndexFinder |
NOT_CRLF
一个既不是 CR ('\r')也不是LF ('\n')的索引查找器. |
static ChannelBufferIndexFinder |
NOT_LF
一个非 LF ('\n')字节的索引查找器. |
static ChannelBufferIndexFinder |
NOT_LINEAR_WHITESPACE
一个既不是连续空格( ' '也不是'\t')的索引查找器. |
static ChannelBufferIndexFinder |
NOT_NUL
一个非 NUL (0x00)字节的索引查找器. |
static ChannelBufferIndexFinder |
NUL
一个 NUL (0x00)字节的索引查找器. |
| 方法摘要 | |
|---|---|
boolean |
find(ChannelBuffer buffer,
int guessedIndex)
只有在指定的缓冲上指定的索引找到数据才返回true. |
| 字段详细信息 |
|---|
static final ChannelBufferIndexFinder NUL
NUL (0x00)字节的索引查找器.
static final ChannelBufferIndexFinder NOT_NUL
NUL (0x00)字节的索引查找器.
static final ChannelBufferIndexFinder CR
CR ('\r')字节的索引查找器.
static final ChannelBufferIndexFinder NOT_CR
CR ('\r')字节的索引查找器.
static final ChannelBufferIndexFinder LF
LF ('\n')字节的索引查找器.
static final ChannelBufferIndexFinder NOT_LF
LF ('\n')字节的索引查找器.
static final ChannelBufferIndexFinder CRLF
CR ('\r')或LF ('\n')的索引查找器.
static final ChannelBufferIndexFinder NOT_CRLF
CR ('\r')也不是LF ('\n')的索引查找器.
static final ChannelBufferIndexFinder LINEAR_WHITESPACE
' '和'\t')的索引查找器.
static final ChannelBufferIndexFinder NOT_LINEAR_WHITESPACE
' '也不是'\t')的索引查找器.
| 方法详细信息 |
|---|
boolean find(ChannelBuffer buffer,
int guessedIndex)
当发生异常如IndexOutOfBoundsException或修改了缓冲的内容都不会执行该操作.
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||