public abstract class JettyJSONContext<T extends Message.Mutable> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
JettyJSONContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
generate(List<T> messages) |
String |
generate(T message) |
JSONContext.Generator |
getGenerator() |
org.eclipse.jetty.util.ajax.JSON |
getJSON() |
JSONContext.Parser |
getParser() |
protected abstract T |
newRoot() |
protected abstract T[] |
newRootArray(int size) |
T[] |
parse(InputStream stream) |
T[] |
parse(Reader reader) |
T[] |
parse(String json) |
public org.eclipse.jetty.util.ajax.JSON getJSON()
protected abstract T newRoot()
protected abstract T[] newRootArray(int size)
public T[] parse(InputStream stream) throws ParseException
ParseExceptionpublic T[] parse(Reader reader) throws ParseException
ParseExceptionpublic T[] parse(String json) throws ParseException
ParseExceptionpublic JSONContext.Parser getParser()
public JSONContext.Generator getGenerator()
Copyright © 2008–2015 Dojo Foundation. All rights reserved.