org.apache.tinkerpop.gremlin.structure.io.graphson

## Class ToStringGraphSONSerializer

- java.lang.Object
- - ToStringSerializer
  - - org.apache.tinkerpop.gremlin.structure.io.graphson.ToStringGraphSONSerializer

-     public class ToStringGraphSONSerializer
      extends ToStringSerializer

  A different implementation of the `ToStringSerializer` that does not serialize types by calling `typeSerializer.writeTypePrefixForScalar()` for unknown objects, because it doesn't make sense when there is a custom types mechanism in place.
  Author:
    Kevin Gallardo (https://kgdo.me)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ToStringGraphSONSerializer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `serializeWithType(Object value, JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ToStringGraphSONSerializer

          public ToStringGraphSONSerializer()

  - ### Method Detail

    - #### serializeWithType

          public void serializeWithType(Object value,
                                        JsonGenerator gen,
                                        SerializerProvider provider,
                                        TypeSerializer typeSer)
                                 throws IOException

      Throws:
        `IOException`

Copyright © 2013–2021 Apache Software Foundation. All rights reserved.