public abstract class JacksonJSONContext<T extends Message.Mutable,I extends T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
JacksonJSONContext() |
Modifier and Type | Method and Description |
---|---|
String |
generate(List<T> messages) |
String |
generate(T message) |
JSONContext.Generator |
getGenerator() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
JSONContext.Parser |
getParser() |
T[] |
parse(InputStream stream) |
T[] |
parse(Reader reader) |
T[] |
parse(String json) |
protected abstract Class<I[]> |
rootArrayClass() |
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public T[] parse(InputStream stream) throws ParseException
ParseException
public T[] parse(Reader reader) throws ParseException
ParseException
public T[] parse(String json) throws ParseException
ParseException
public JSONContext.Parser getParser()
public JSONContext.Generator getGenerator()
Copyright © 2008–2016 The CometD Project. All rights reserved.