Constructor and Description |
---|
GeometrySerializer(org.geolatte.geom.json.Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
serialize(Geometry<P> geometry,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers)
Method that can be called to ask implementation to serialize
values of type this serializer handles.
|
void |
serializeWithType(Geometry<P> value,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
public GeometrySerializer(org.geolatte.geom.json.Settings settings)
public void serialize(Geometry<P> geometry, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<Geometry<P extends Position>>
geometry
- Geometry value to serialize; can not be null.gen
- Generator used to output resulting Json contentserializers
- Provider that can be used to get serializers forIOException
public void serializeWithType(Geometry<P> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException
serializeWithType
in class com.fasterxml.jackson.databind.JsonSerializer<Geometry<P extends Position>>
IOException
Copyright © 2021 geolatte.org. All rights reserved.