public abstract class AbstractStringAwareBufProcessor extends Object
Base class for ByteBufProcessor
that need to take JSON string escaping into account, through the isEscaped(byte)
method.
Constructor and Description |
---|
AbstractStringAwareBufProcessor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isEscaped(byte nextByte)
Detects opening and closing of JSON strings and keep track of it in order to mark characters in the string (delimiter quotes included) as escaped.
|
protected boolean isEscaped(byte nextByte)
Detects opening and closing of JSON strings and keep track of it in order to mark characters in the string (delimiter quotes included) as escaped.
Quotes escaped by a \ are correctly detected and do not mark a closing of a JSON string.
nextByte
- the next byte to inspect.Copyright © 2018 Couchbase, Inc.. All rights reserved.