public class JettyJSONContextClient extends JettyJSONContext<Message.Mutable> implements JSONContext.Client
| Constructor and Description |
|---|
JettyJSONContextClient() |
| Modifier and Type | Method and Description |
|---|---|
String |
generate(T message) |
String |
generate(T[] messages) |
protected Message.Mutable |
newRoot() |
protected Message.Mutable[] |
newRootArray(int size) |
T[] |
parse(InputStream stream) |
T[] |
parse(Reader reader) |
T[] |
parse(String json) |
protected Message.Mutable newRoot()
newRoot in class JettyJSONContext<Message.Mutable>protected Message.Mutable[] newRootArray(int size)
newRootArray in class JettyJSONContext<Message.Mutable>public T[] parse(InputStream stream) throws ParseException
ParseExceptionpublic T[] parse(Reader reader) throws ParseException
ParseExceptionpublic T[] parse(String json) throws ParseException
ParseExceptionpublic String generate(T message)
public String generate(T[] messages)
Copyright © 2008-2012 Dojo Foundation. All Rights Reserved.