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
IOExceptionpublic void serialize(T value, OutputStream out, boolean pretty) throws IOException
IOExceptionpublic T deserialize(String json) throws com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.core.JsonParseExceptionpublic T deserialize(InputStream json) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionpublic abstract void serialize(T value, com.fasterxml.jackson.core.JsonGenerator g) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic abstract T deserialize(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static String getStringValue(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static void expectField(String name, com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static void expectStartObject(com.fasterxml.jackson.core.JsonParser p)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static void expectEndObject(com.fasterxml.jackson.core.JsonParser p)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static void expectStartArray(com.fasterxml.jackson.core.JsonParser p)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static void expectEndArray(com.fasterxml.jackson.core.JsonParser p)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static void skipValue(com.fasterxml.jackson.core.JsonParser p)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptionprotected static void skipFields(com.fasterxml.jackson.core.JsonParser p)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
IOExceptioncom.fasterxml.jackson.core.JsonParseException