public class SeekableMatcherForByte extends Object implements SeekableMatcher
| Modifier and Type | Field and Description |
|---|---|
protected byte |
delimiter
The byte which to match
|
protected boolean |
isFwd |
protected boolean |
toLower |
| Constructor and Description |
|---|
SeekableMatcherForByte(byte delimiter,
boolean isFwd,
boolean toLower) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
find(Seekable seekable)
Move the position to the next match.
|
boolean |
isForward()
Whether the matcher matches in forward direction and thus nextPos() moves towards the end of the match.
|
void |
resetState()
Reset the state of the matcher such that it can be used with a fresh seekable
|
protected byte delimiter
protected boolean isFwd
protected boolean toLower
public SeekableMatcherForByte(byte delimiter,
boolean isFwd,
boolean toLower)
public boolean isForward()
SeekableMatcherisForward in interface SeekableMatcherpublic void resetState()
SeekableMatcherresetState in interface SeekableMatcherpublic boolean find(Seekable seekable) throws IOException
SeekableMatcherfind in interface SeekableMatcherIOExceptionCopyright © 2020. All rights reserved.