Package org.cometd.common
Class JettyJSONContextClient
- All Implemented Interfaces:
JSONContext.Client
public class JettyJSONContextClient extends JettyJSONContext<Message.Mutable> implements JSONContext.Client
-
Constructor Summary
Constructors Constructor Description JettyJSONContextClient()
-
Method Summary
Modifier and Type Method Description String
generate(List<Message.Mutable> messages)
String
generate(Message.Mutable message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
protected Message.Mutable
newRoot()
protected Message.Mutable[]
newRootArray(int size)
Message.Mutable[]
parse(InputStream stream)
Message.Mutable[]
parse(Reader reader)
Message.Mutable[]
parse(String json)
Methods inherited from class org.cometd.common.JettyJSONContext
generate, generate, getGenerator, getJSON, getParser, parse, parse, parse
-
Constructor Details
-
JettyJSONContextClient
public JettyJSONContextClient()
-
-
Method Details
-
newRoot
- Specified by:
newRoot
in classJettyJSONContext<Message.Mutable>
-
newRootArray
- Specified by:
newRootArray
in classJettyJSONContext<Message.Mutable>
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
-
getGenerator
-