Interface DataBufferUtils.Matcher
- Enclosing class:
- DataBufferUtils
public static interface DataBufferUtils.Matcher
Contract to find delimiter(s) against one or more data buffers that can be passed one at a time to thematch(DataBuffer)
method.- Since:
- 5.2
- See Also:
match(DataBuffer)
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
delimiter()
Return the delimiter from the last invocation ofmatch(DataBuffer)
.int
match(DataBuffer dataBuffer)
Find the first matching delimiter and return the index of the last byte of the delimiter, or-1
if not found.void
reset()
Reset the state of this matcher.
Method Detail
match
int match(DataBuffer dataBuffer)
Find the first matching delimiter and return the index of the last byte of the delimiter, or-1
if not found.
delimiter
byte[] delimiter()
Return the delimiter from the last invocation ofmatch(DataBuffer)
.
reset
void reset()
Reset the state of this matcher.