public class EscapingStopCharTester extends Object implements StopCharTester
Modifier and Type | Method and Description |
---|---|
static StopCharTester |
escaping(StopCharTester sct) |
boolean |
isStopChar(int ch)
Detect which byte stops the string to be parsed
|
public static StopCharTester escaping(StopCharTester sct)
public boolean isStopChar(int ch) throws IllegalStateException
StopCharTester
This should be changed to support char instead.
Note: for safety reasons, you should stop on a 0 byte or throw an IllegalStateException.
isStopChar
in interface StopCharTester
ch
- to test, 0 should return true or throw an exception.IllegalStateException
- if an invalid character like 0 was detected.Copyright © 2019. All rights reserved.