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 SummaryConstructors Constructor Description StoneSerializer()
 - 
Method SummaryAll 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- 
serializepublic java.lang.String serialize(T value) 
 - 
serializepublic java.lang.String serialize(T value, boolean pretty) 
 - 
serializepublic void serialize(T value, java.io.OutputStream out) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
serializepublic void serialize(T value, java.io.OutputStream out, boolean pretty) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
deserializepublic T deserialize(java.lang.String json) throws com.fasterxml.jackson.core.JsonParseException - Throws:
- com.fasterxml.jackson.core.JsonParseException
 
 - 
deserializepublic T deserialize(java.io.InputStream json) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException - Throws:
- java.io.IOException
- com.fasterxml.jackson.core.JsonParseException
 
 - 
serializepublic 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
 
 - 
deserializepublic 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
 
 - 
getStringValueprotected 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
 
 - 
expectFieldprotected 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
 
 - 
expectStartObjectprotected 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
 
 - 
expectEndObjectprotected 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
 
 - 
expectStartArrayprotected 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
 
 - 
expectEndArrayprotected 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
 
 - 
skipValueprotected 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
 
 - 
skipFieldsprotected 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
 
 
- 
 
-