类 DataBufferUtils.KnuthMorrisPrattMatcher
java.lang.Object
cn.taketoday.core.io.buffer.DataBufferUtils.AbstractNestedMatcher
cn.taketoday.core.io.buffer.DataBufferUtils.KnuthMorrisPrattMatcher
- 封闭类:
- DataBufferUtils
private static class DataBufferUtils.KnuthMorrisPrattMatcher
extends DataBufferUtils.AbstractNestedMatcher
Implementation of
DataBufferUtils.Matcher that uses the Knuth-Morris-Pratt algorithm.-
字段概要
字段从类继承的字段 cn.taketoday.core.io.buffer.DataBufferUtils.AbstractNestedMatcher
delimiter, matches -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int[]longestSuffixPrefixTable(byte[] delimiter) booleanmatch(byte b) Perform a match against the next byte of the stream and return true if the delimiter is fully matched.从类继承的方法 cn.taketoday.core.io.buffer.DataBufferUtils.AbstractNestedMatcher
delimiter, match, reset
-
字段详细资料
-
table
private final int[] table
-
-
构造器详细资料
-
KnuthMorrisPrattMatcher
public KnuthMorrisPrattMatcher(byte[] delimiter)
-
-
方法详细资料
-
longestSuffixPrefixTable
private static int[] longestSuffixPrefixTable(byte[] delimiter) -
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- 覆盖:
match在类中DataBufferUtils.AbstractNestedMatcher
-