public abstract class StoneSerializer<T> extends Object
Constructor and Description |
---|
StoneSerializer() |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(InputStream json) |
abstract T |
deserialize(com.fasterxml.jackson.core.JsonParser p) |
T |
deserialize(String json) |
protected static void |
expectEndArray(com.fasterxml.jackson.core.JsonParser p) |
protected static void |
expectEndObject(com.fasterxml.jackson.core.JsonParser p) |
protected static void |
expectField(String name,
com.fasterxml.jackson.core.JsonParser p) |
protected static void |
expectStartArray(com.fasterxml.jackson.core.JsonParser p) |
protected static void |
expectStartObject(com.fasterxml.jackson.core.JsonParser p) |
protected static String |
getStringValue(com.fasterxml.jackson.core.JsonParser p) |
String |
serialize(T value) |
String |
serialize(T value,
boolean pretty) |
abstract void |
serialize(T value,
com.fasterxml.jackson.core.JsonGenerator g) |
void |
serialize(T value,
OutputStream out) |
void |
serialize(T value,
OutputStream out,
boolean pretty) |
protected static void |
skipFields(com.fasterxml.jackson.core.JsonParser p) |
protected static void |
skipValue(com.fasterxml.jackson.core.JsonParser p) |
public void serialize(T value, OutputStream out) throws IOException
IOException
public void serialize(T value, OutputStream out, boolean pretty) throws IOException
IOException
public T deserialize(String json) throws com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.core.JsonParseException
public T deserialize(InputStream json) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
public abstract void serialize(T value, com.fasterxml.jackson.core.JsonGenerator g) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
IOException
com.fasterxml.jackson.core.JsonGenerationException
public abstract T deserialize(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static String getStringValue(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static void expectField(String name, com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static void expectStartObject(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static void expectEndObject(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static void expectStartArray(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static void expectEndArray(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static void skipValue(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
protected static void skipFields(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException