Class JacksonGeometrySerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<org.locationtech.jts.geom.Geometry>
com.fasterxml.jackson.databind.ser.std.StdSerializer<org.locationtech.jts.geom.Geometry>
org.bremersee.geojson.converter.serialization.JacksonGeometrySerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, Serializable

public class JacksonGeometrySerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<org.locationtech.jts.geom.Geometry>
A Jackson serializer for a Geometry.
Author:
Christian Bremer
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Field Summary

    Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _handledType
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new Jackson geometry serializer.
    JacksonGeometrySerializer(boolean withBoundingBox, boolean useBigDecimal)
    Instantiates a new Jackson geometry serializer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(org.locationtech.jts.geom.Geometry value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
     

    Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JacksonGeometrySerializer

      public JacksonGeometrySerializer()
      Instantiates a new Jackson geometry serializer.
    • JacksonGeometrySerializer

      public JacksonGeometrySerializer(boolean withBoundingBox, boolean useBigDecimal)
      Instantiates a new Jackson geometry serializer.
      Parameters:
      withBoundingBox - the with bounding box
      useBigDecimal - the use big decimal
  • Method Details

    • serialize

      public void serialize(org.locationtech.jts.geom.Geometry value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.locationtech.jts.geom.Geometry>
      Throws:
      IOException