Class ShapeAsGeoJSONSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public class ShapeAsGeoJSONSerializer
    extends com.fasterxml.jackson.databind.JsonSerializer<Shape>
    • Nested Class Summary

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static double round​(double v)  
      void serialize​(Shape shape, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)  
      protected void write​(com.fasterxml.jackson.core.JsonGenerator gen, double... coords)  
      void write​(com.fasterxml.jackson.core.JsonGenerator gen, Shape shape)  
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
    • Constructor Detail

      • ShapeAsGeoJSONSerializer

        public ShapeAsGeoJSONSerializer()
    • Method Detail

      • write

        protected void write​(com.fasterxml.jackson.core.JsonGenerator gen,
                             double... coords)
                      throws IOException
        Throws:
        IOException
      • round

        public static double round​(double v)
      • serialize

        public void serialize​(Shape shape,
                              com.fasterxml.jackson.core.JsonGenerator gen,
                              com.fasterxml.jackson.databind.SerializerProvider serializers)
                       throws IOException,
                              com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<Shape>
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException