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