public class EscapingStopCharsTester extends Object implements StopCharsTester
StopCharsTester
that considers escape characters.
This tester allows escaping of characters using the backslash "\\" and will not treat
an escaped character as a stop character.Constructor and Description |
---|
EscapingStopCharsTester(StopCharsTester sct)
Constructs an EscapingStopCharsTester with the given
StopCharsTester . |
Modifier and Type | Method and Description |
---|---|
boolean |
isStopChar(int ch,
int peekNextCh)
Tests whether the given character should be considered as a stop character.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
escaping
public EscapingStopCharsTester(StopCharsTester sct)
StopCharsTester
.sct
- the StopCharsTester to be decorated with escape character functionality.public boolean isStopChar(int ch, int peekNextCh)
isStopChar
in interface StopCharsTester
ch
- the character to testpeekNextCh
- the next character (peeked ahead)true
if the character is a stop character, false
otherwiseCopyright © 2024. All rights reserved.