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