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