接口 DataBufferUtils.Matcher
- 所有已知子接口:
DataBufferUtils.NestedMatcher
- 所有已知实现类:
DataBufferUtils.AbstractNestedMatcher,DataBufferUtils.CompositeMatcher,DataBufferUtils.KnuthMorrisPrattMatcher,DataBufferUtils.SingleByteMatcher,DataBufferUtils.TwoByteMatcher
- 封闭类:
- 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 the
match(DataBuffer) method.- 另请参阅:
-
方法概要
修饰符和类型方法说明byte[]Return the delimiter from the last invocation ofmatch(DataBuffer).intmatch(DataBuffer dataBuffer) Find the first matching delimiter and return the index of the last byte of the delimiter, or-1if not found.voidreset()Reset the state of this matcher.
-
方法详细资料
-
match
Find the first matching delimiter and return the index of the last byte of the delimiter, or-1if not found. -
delimiter
byte[] delimiter()Return the delimiter from the last invocation ofmatch(DataBuffer). -
reset
void reset()Reset the state of this matcher.
-