Package com.dropbox.core.stone
Class StoneSerializer<T>
- java.lang.Object
-
- com.dropbox.core.stone.StoneSerializer<T>
-
- Direct Known Subclasses:
CompositeSerializer
public abstract class StoneSerializer<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StoneSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tdeserialize(com.fasterxml.jackson.core.JsonParser p)Tdeserialize(java.io.InputStream json)Tdeserialize(java.lang.String json)protected static voidexpectEndArray(com.fasterxml.jackson.core.JsonParser p)protected static voidexpectEndObject(com.fasterxml.jackson.core.JsonParser p)protected static voidexpectField(java.lang.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 java.lang.StringgetStringValue(com.fasterxml.jackson.core.JsonParser p)java.lang.Stringserialize(T value)java.lang.Stringserialize(T value, boolean pretty)abstract voidserialize(T value, com.fasterxml.jackson.core.JsonGenerator g)voidserialize(T value, java.io.OutputStream out)voidserialize(T value, java.io.OutputStream out, boolean pretty)protected static voidskipFields(com.fasterxml.jackson.core.JsonParser p)protected static voidskipValue(com.fasterxml.jackson.core.JsonParser p)
-
-
-
Method Detail
-
serialize
public java.lang.String serialize(T value)
-
serialize
public java.lang.String serialize(T value, boolean pretty)
-
serialize
public void serialize(T value, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
serialize
public void serialize(T value, java.io.OutputStream out, boolean pretty) throws java.io.IOException
- Throws:
java.io.IOException
-
deserialize
public T deserialize(java.lang.String json) throws com.fasterxml.jackson.core.JsonParseException
- Throws:
com.fasterxml.jackson.core.JsonParseException
-
deserialize
public T deserialize(java.io.InputStream json) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
serialize
public abstract void serialize(T value, com.fasterxml.jackson.core.JsonGenerator g) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonGenerationException
-
deserialize
public abstract T deserialize(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException
- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
getStringValue
protected static java.lang.String getStringValue(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectField
protected static void expectField(java.lang.String name, com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectStartObject
protected static void expectStartObject(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectEndObject
protected static void expectEndObject(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectStartArray
protected static void expectStartArray(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
expectEndArray
protected static void expectEndArray(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
skipValue
protected static void skipValue(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
skipFields
protected static void skipFields(com.fasterxml.jackson.core.JsonParser p) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException- Throws:
java.io.IOExceptioncom.fasterxml.jackson.core.JsonParseException
-
-