Class JettyJSONContext.AsyncJSONParser
java.lang.Object
org.cometd.common.JettyJSONContext.AsyncJSONParser
- All Implemented Interfaces:
JSONContext.AsyncParser
- Enclosing class:
JettyJSONContext<M extends Message.Mutable>
protected static class JettyJSONContext.AsyncJSONParser
extends Object
implements JSONContext.AsyncParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Rcomplete()Signals the end of the JSON string content to this parser and returns the parsed object.voidparse(ByteBuffer buffer)
-
Constructor Details
-
AsyncJSONParser
public AsyncJSONParser(org.eclipse.jetty.util.ajax.AsyncJSON asyncJSON)
-
-
Method Details
-
parse
- Specified by:
parsein interfaceJSONContext.AsyncParser- Parameters:
buffer- the buffer chunk to parse
-
complete
public <R> R complete()Description copied from interface:JSONContext.AsyncParserSignals the end of the JSON string content to this parser and returns the parsed object.
- Specified by:
completein interfaceJSONContext.AsyncParser- Type Parameters:
R- the type to cast the result to- Returns:
- the result of the JSON parsing
-