Package com.google.code.yanf4j.util
Class ShiftOrByteBufferMatcher
java.lang.Object
com.google.code.yanf4j.util.ShiftOrByteBufferMatcher
- All Implemented Interfaces:
ByteBufferMatcher
ByteBuffer matcher based on shift-or algorithm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
matchFirst
(IoBuffer buffer) private void
preprocess
(IoBuffer pat) Ԥ����
-
Field Details
-
b
private int[] b -
lim
private int lim -
patternLen
private int patternLen
-
-
Constructor Details
-
ShiftOrByteBufferMatcher
-
-
Method Details
-
preprocess
Ԥ����- Parameters:
pat
-
-
matchAll
- Specified by:
matchAll
in interfaceByteBufferMatcher
-
matchFirst
- Specified by:
matchFirst
in interfaceByteBufferMatcher
-