Package org.cometd.common
Class JettyJSONContextClient
- java.lang.Object
-
- org.cometd.common.JettyJSONContext<Message.Mutable>
-
- org.cometd.common.JettyJSONContextClient
-
- All Implemented Interfaces:
JSONContext.Client
public class JettyJSONContextClient extends JettyJSONContext<Message.Mutable> implements JSONContext.Client
-
-
Constructor Summary
Constructors Constructor Description JettyJSONContextClient()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stringgenerate(List<T> messages)Stringgenerate(T message)JSONContext.GeneratorgetGenerator()JSONContext.ParsergetParser()protected Message.MutablenewRoot()protected Message.Mutable[]newRootArray(int size)T[]parse(InputStream stream)T[]parse(Reader reader)T[]parse(String json)-
Methods inherited from class org.cometd.common.JettyJSONContext
generate, generate, getGenerator, getJSON, getParser, parse, parse, parse
-
-
-
-
Method Detail
-
newRoot
protected Message.Mutable newRoot()
- Specified by:
newRootin classJettyJSONContext<Message.Mutable>
-
newRootArray
protected Message.Mutable[] newRootArray(int size)
- Specified by:
newRootArrayin classJettyJSONContext<Message.Mutable>
-
parse
public abstract T[] parse(InputStream stream) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(Reader reader) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(String json) throws ParseException
- Throws:
ParseException
-
generate
public abstract String generate(T message)
-
getParser
public abstract JSONContext.Parser getParser()
-
getGenerator
public abstract JSONContext.Generator getGenerator()
-
-