Package org.cometd.common
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 java.lang.Object implements JSONContext.AsyncParser
-
-
Constructor Summary
Constructors Constructor Description AsyncJSONParser(org.eclipse.jetty.util.ajax.AsyncJSON asyncJSON)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
complete()
Signals the end of the JSON string content to this parser and returns the parsed object.void
parse(java.nio.ByteBuffer buffer)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cometd.common.JSONContext.AsyncParser
parse
-
-
-
-
Method Detail
-
parse
public void parse(java.nio.ByteBuffer buffer)
- Specified by:
parse
in interfaceJSONContext.AsyncParser
- Parameters:
buffer
- the buffer chunk to parse
-
complete
public <R> R complete()
Description copied from interface:JSONContext.AsyncParser
Signals the end of the JSON string content to this parser and returns the parsed object.
- Specified by:
complete
in interfaceJSONContext.AsyncParser
- Type Parameters:
R
- the type to cast the result to- Returns:
- the result of the JSON parsing
-
-