Package com.dropbox.core.stone
Class StoneSerializer<T>
java.lang.Object
com.dropbox.core.stone.StoneSerializer<T>
- Direct Known Subclasses:
CompositeSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tdeserialize(com.fasterxml.jackson.core.JsonParser p) deserialize(InputStream json) deserialize(String json) protected static voidexpectEndArray(com.fasterxml.jackson.core.JsonParser p) protected static voidexpectEndObject(com.fasterxml.jackson.core.JsonParser p) protected static voidexpectField(String name, com.fasterxml.jackson.core.JsonParser p) protected static voidexpectStartArray(com.fasterxml.jackson.core.JsonParser p) protected static voidexpectStartObject(com.fasterxml.jackson.core.JsonParser p) protected static StringgetStringValue(com.fasterxml.jackson.core.JsonParser p) abstract voidvoidserialize(T value, OutputStream out) voidserialize(T value, OutputStream out, boolean pretty) protected static voidskipFields(com.fasterxml.jackson.core.JsonParser p) protected static voidskipValue(com.fasterxml.jackson.core.JsonParser p)
-
Constructor Details
-
StoneSerializer
public StoneSerializer()
-
-
Method Details
-
serialize
-
serialize
-
serialize
- Throws:
IOException
-
serialize
- Throws:
IOException
-
deserialize
- Throws:
com.fasterxml.jackson.core.JsonParseException
-
deserialize
public T deserialize(InputStream json) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
serialize
public abstract void serialize(T value, com.fasterxml.jackson.core.JsonGenerator g) throws IOException, com.fasterxml.jackson.core.JsonGenerationException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
deserialize
public abstract T deserialize(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
getStringValue
protected static String getStringValue(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectField
protected static void expectField(String name, com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectStartObject
protected static void expectStartObject(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectEndObject
protected static void expectEndObject(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectStartArray
protected static void expectStartArray(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectEndArray
protected static void expectEndArray(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
skipValue
protected static void skipValue(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
skipFields
protected static void skipFields(com.fasterxml.jackson.core.JsonParser p) throws IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonParseException
-