类 DataBufferUtils.CompositeMatcher
java.lang.Object
cn.taketoday.core.io.buffer.DataBufferUtils.CompositeMatcher
- 所有已实现的接口:
DataBufferUtils.Matcher
- 封闭类:
- DataBufferUtils
private static class DataBufferUtils.CompositeMatcher
extends Object
implements DataBufferUtils.Matcher
Matcher that supports searching for multiple delimiters.
-
字段概要
字段修饰符和类型字段说明(专用程序包) byte[]private final DataBufferUtils.NestedMatcher[]private static final byte[] -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明byte[]Return the delimiter from the last invocation ofDataBufferUtils.Matcher.match(DataBuffer).private static DataBufferUtils.NestedMatcher[]initMatchers(byte[][] delimiters) 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.
-
字段详细资料
-
NO_DELIMITER
private static final byte[] NO_DELIMITER -
matchers
-
longestDelimiter
byte[] longestDelimiter
-
-
构造器详细资料
-
CompositeMatcher
CompositeMatcher(byte[][] delimiters)
-
-
方法详细资料
-
initMatchers
-
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
-
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
-