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 intprivate intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intmatchFirst(IoBuffer buffer) private voidpreprocess(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:
matchAllin interfaceByteBufferMatcher
-
matchFirst
- Specified by:
matchFirstin interfaceByteBufferMatcher
-