Class ShapeDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<Shape>
org.locationtech.spatial4j.io.jackson.ShapeDeserializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(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) read
(com.fasterxml.jackson.core.JsonParser jp, ShapeFactory factory) read
(com.fasterxml.jackson.databind.node.ObjectNode node, ShapeFactory factory) 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
-
Field Details
-
ctx
-
-
Constructor Details
-
ShapeDeserializer
public ShapeDeserializer() -
ShapeDeserializer
-
-
Method Details
-
readPoint
-
fillPoints
private void fillPoints(ShapeFactory.PointsBuilder b, com.fasterxml.jackson.databind.node.ArrayNode arrs) -
fillPolygon
private void fillPolygon(ShapeFactory.PolygonBuilder b, com.fasterxml.jackson.databind.node.ArrayNode arr) -
read
public Shape read(com.fasterxml.jackson.databind.node.ObjectNode node, ShapeFactory factory) throws IOException - Throws:
IOException
-
read
public Shape read(com.fasterxml.jackson.core.JsonParser jp, ShapeFactory factory) throws IOException - Throws:
IOException
-
deserialize
public Shape deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Specified by:
deserialize
in classcom.fasterxml.jackson.databind.JsonDeserializer<Shape>
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-