public class EscapingStopCharsTester extends Object implements StopCharsTester
Constructor and Description |
---|
EscapingStopCharsTester(StopCharsTester sct) |
Modifier and Type | Method and Description |
---|---|
boolean |
isStopChar(int ch,
int ch2)
Detect which byte or bytes stops the string to be parsed
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
escaping
public EscapingStopCharsTester(StopCharsTester sct)
public boolean isStopChar(int ch, int ch2) throws IllegalStateException
StopCharsTester
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 StopCharsTester
ch
- to test, 0 should return true or throw an exception.ch2
- to test, 0 should return true or throw an exception.IllegalStateException
- if an invalid character like 0 was detected.Copyright © 2015. All rights reserved.