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 T
deserialize(com.fasterxml.jackson.core.JsonParser p)
T
deserialize(java.io.InputStream json)
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)
-
-
-
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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.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.IOException
com.fasterxml.jackson.core.JsonParseException
-
-