接口 DataBufferUtils.Matcher
- 封闭类:
- DataBufferUtils
public static interface DataBufferUtils.Matcher
Contract to find delimiter(s) against one or more data buffers that can be passed one at a time to thematch(DataBuffer)
method.- 从以下版本开始:
- 5.2
- 另请参阅:
match(DataBuffer)
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 byte[]
delimiter()
Return the delimiter from the last invocation ofmatch(DataBuffer)
.int
match(DataBuffer dataBuffer)
Find the first matching delimiter and return the index of the last byte of the delimiter, or-1
if not found.void
reset()
Reset the state of this matcher.
方法详细资料
match
int match(DataBuffer dataBuffer)
Find the first matching delimiter and return the index of the last byte of the delimiter, or-1
if not found.
delimiter
byte[] delimiter()
Return the delimiter from the last invocation ofmatch(DataBuffer)
.
reset
void reset()
Reset the state of this matcher.