Class GraphSONUtil


  • public final class GraphSONUtil
    extends Object
    Utility methods for GraphSON serialization. Functions in here might be used by external serializers.
    Author:
    Stephen Mallette (http://stephen.genoprime.com)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void writeEndArray​(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer)  
      static void writeEndObject​(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer)  
      static void writeStartArray​(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer)  
      static void writeStartObject​(Object o, org.apache.tinkerpop.shaded.jackson.core.JsonGenerator jsonGenerator, org.apache.tinkerpop.shaded.jackson.databind.jsontype.TypeSerializer typeSerializer)  
      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)  
      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)  
    • Method Detail

      • 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