类 DataBufferUtils.AbstractNestedMatcher
java.lang.Object
cn.taketoday.core.io.buffer.DataBufferUtils.AbstractNestedMatcher
- 封闭类:
- DataBufferUtils
private abstract static class DataBufferUtils.AbstractNestedMatcher
extends Object
implements DataBufferUtils.NestedMatcher
Base class for a
DataBufferUtils.NestedMatcher.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明byte[]Return the delimiter from the last invocation ofDataBufferUtils.Matcher.match(DataBuffer).booleanmatch(byte b) Perform a match against the next byte of the stream and return true if the delimiter is fully matched.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.
-
字段详细资料
-
matches
public int matches -
delimiter
public final byte[] delimiter
-
-
构造器详细资料
-
AbstractNestedMatcher
protected AbstractNestedMatcher(byte[] delimiter)
-
-
方法详细资料
-
match
从接口复制的说明:DataBufferUtils.MatcherFind the first matching delimiter and return the index of the last byte of the delimiter, or-1if not found.- 指定者:
match在接口中DataBufferUtils.Matcher
-
match
public boolean match(byte b) 从接口复制的说明:DataBufferUtils.NestedMatcherPerform a match against the next byte of the stream and return true if the delimiter is fully matched.- 指定者:
match在接口中DataBufferUtils.NestedMatcher
-
delimiter
public byte[] delimiter()从接口复制的说明:DataBufferUtils.MatcherReturn the delimiter from the last invocation ofDataBufferUtils.Matcher.match(DataBuffer).- 指定者:
delimiter在接口中DataBufferUtils.Matcher
-
reset
public void reset()从接口复制的说明:DataBufferUtils.MatcherReset the state of this matcher.- 指定者:
reset在接口中DataBufferUtils.Matcher
-