public class EscapingStopCharsTester extends Object implements StopCharsTester
StopCharsTester that treats a backslash ('\\') as an
escape character. The tester delegates to another StopCharsTester when
a character is not escaped.
The escape state is held per instance: after seeing a backslash the next call
to isStopChar(int, int) ignores the character passed and clears the
escaped state. Instances are therefore not thread safe. See also
EscapingStopCharTester for the single-character variant.
| Constructor and Description |
|---|
EscapingStopCharsTester(StopCharsTester sct) |
| 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, waitescapingpublic EscapingStopCharsTester(StopCharsTester sct)
sct - the underlying StopCharsTester to which non escaped
characters will be delegatedpublic boolean isStopChar(int ch,
int peekNextCh)
isStopChar in interface StopCharsTesterch - the character to testpeekNextCh - the next character (peeked ahead)true if the character is a stop character, false otherwiseCopyright © 2026 Chronicle Software Ltd. All rights reserved.