Class ShapeDeserializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.deser.NullValueProvider

    public class ShapeDeserializer
    extends com.fasterxml.jackson.databind.JsonDeserializer<Shape>
    • Nested Class Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Shape deserialize​(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)  
      private void fillPoints​(ShapeFactory.PointsBuilder b, com.fasterxml.jackson.databind.node.ArrayNode arrs)  
      private void fillPolygon​(ShapeFactory.PolygonBuilder b, com.fasterxml.jackson.databind.node.ArrayNode arr)  
      Shape read​(com.fasterxml.jackson.core.JsonParser jp, ShapeFactory factory)  
      Shape read​(com.fasterxml.jackson.databind.node.ObjectNode node, ShapeFactory factory)  
      Point readPoint​(com.fasterxml.jackson.databind.node.ArrayNode arr, ShapeFactory factory)  
      • Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
      • Methods inherited from class java.lang.Object

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

      • ShapeDeserializer

        public ShapeDeserializer()
    • Method Detail

      • readPoint

        public Point readPoint​(com.fasterxml.jackson.databind.node.ArrayNode arr,
                               ShapeFactory factory)
      • read

        public Shape read​(com.fasterxml.jackson.databind.node.ObjectNode node,
                          ShapeFactory factory)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public Shape read​(com.fasterxml.jackson.core.JsonParser jp,
                          ShapeFactory factory)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        public Shape deserialize​(com.fasterxml.jackson.core.JsonParser jp,
                                 com.fasterxml.jackson.databind.DeserializationContext ctxt)
                          throws java.io.IOException,
                                 com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Shape>
        Throws:
        java.io.IOException
        com.fasterxml.jackson.core.JsonProcessingException