public static interface JSONContext.AsyncParser
| Modifier and Type | Method and Description |
|---|---|
<R> R |
complete()
Signals the end of the JSON string content to this parser and returns the parsed object.
|
default void |
parse(byte[] bytes,
int offset,
int length) |
void |
parse(ByteBuffer buffer) |
default void parse(byte[] bytes,
int offset,
int length)
bytes - the bytes chunk to parseoffset - the offset to start parsing fromlength - the number of bytes to parsevoid parse(ByteBuffer buffer)
buffer - the buffer chunk to parse<R> R complete()
Signals the end of the JSON string content to this parser and returns the parsed object.
R - the type to cast the result toCopyright © 2008–2023 The CometD Project. All rights reserved.