Class GraphSONUtil
java.lang.Object
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONUtil
Utility methods for GraphSON serialization. Functions in here might be used by external serializers.
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteEndArray(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) static voidwriteEndObject(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) static voidwriteStartArray(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) static voidwriteStartObject(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) static voidwriteWithType(Object object, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.SerializerProvider serializerProvider, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) static voidwriteWithType(String key, Object object, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.SerializerProvider serializerProvider, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer)
-
Method Details
-
writeWithType
public static void writeWithType(Object object, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.SerializerProvider serializerProvider, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) throws IOException - Throws:
IOException
-
writeWithType
public static void writeWithType(String key, Object object, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.SerializerProvider serializerProvider, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) throws IOException - Throws:
IOException
-
writeStartObject
public static void writeStartObject(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) throws IOException - Throws:
IOException
-
writeEndObject
public static void writeEndObject(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) throws IOException - Throws:
IOException
-
writeStartArray
public static void writeStartArray(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) throws IOException - Throws:
IOException
-
writeEndArray
public static void writeEndArray(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer) throws IOException - Throws:
IOException
-