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