Class BufferingJSONAsyncParser

java.lang.Object
org.cometd.common.BufferingJSONAsyncParser
All Implemented Interfaces:
JSONContext.AsyncParser

public class BufferingJSONAsyncParser extends Object implements JSONContext.AsyncParser

A JSONContext.AsyncParser that parses an array of Bayeux messages.

This is not a generic parser that can parse any JSON.

This parser buffers all input bytes in memory, and performs blocking JSON parsing via JSONContext.parse(String) only when complete() is called.