类 DataBufferUtils.SingleByteMatcher
java.lang.Object
cn.taketoday.core.io.buffer.DataBufferUtils.SingleByteMatcher
- 封闭类:
- DataBufferUtils
private static class DataBufferUtils.SingleByteMatcher
extends Object
implements DataBufferUtils.NestedMatcher
Matcher for a single byte delimiter.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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.
-
字段详细资料
-
NEWLINE_MATCHER
-
delimiter
private final byte[] delimiter
-
-
构造器详细资料
-
SingleByteMatcher
SingleByteMatcher(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
-