public static class JsonStreamParser.Builder extends Object
build()
.
Not thread safe.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JsonStreamParser |
build()
Return a new parser using the builder's configuration.
|
JsonStreamParser |
build(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf scratchBuffer,
StreamWindow window)
Return a new parser that uses the given scratch buffer and stream window.
|
JsonStreamParser.Builder |
doOnValue(String jsonPointer,
Consumer<MatchedValue> callback)
Register a callback to invoke when the target of the JSON pointer is found.
|
public JsonStreamParser.Builder doOnValue(String jsonPointer, Consumer<MatchedValue> callback)
The JSON pointer path component "-" (which normally refers to the non-existent array element after the end) is interpreted as a wildcard that matches every element.
public JsonStreamParser build()
public JsonStreamParser build(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf scratchBuffer, StreamWindow window)
scratchBuffer
- for readingwindow
- for allocating the stream window's composite buffer.Copyright © 2020 Couchbase, Inc.. All rights reserved.