public class StringClosingPositionBufProcessor extends Object implements io.netty.buffer.ByteBufProcessor
A ByteBufProcessor
to find the closing position of a JSON string. Applying this to a buffer will output the position of the closing of the string, relative to that buffer’s readerIndex, or -1 if the end of the section couldn’t be found.
It’ll take into account the string’s opening quote (which is expected to be after the current readerIndex), and ignore escaped quotes inside the string.
It is invoked on a ByteBuf
by calling ByteBuf.forEachByte(io.netty.buffer.ByteBufProcessor)
methods. *
Constructor and Description |
---|
StringClosingPositionBufProcessor() |
Copyright © 2018 Couchbase, Inc.. All rights reserved.