Class AffineTransform2DSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<org.geotools.referencing.operation.transform.AffineTransform2D>
org.apache.sedona.common.raster.serde.AffineTransform2DSerializer

public class AffineTransform2DSerializer extends com.esotericsoftware.kryo.Serializer<org.geotools.referencing.operation.transform.AffineTransform2D>
AffineTransform2D cannot be correctly deserialized by the default serializer of Kryo, so we need to provide a custom serializer.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.geotools.referencing.operation.transform.AffineTransform2D
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<org.geotools.referencing.operation.transform.AffineTransform2D> aClass)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.geotools.referencing.operation.transform.AffineTransform2D affineTransform2D)
     

    Methods inherited from class com.esotericsoftware.kryo.Serializer

    copy, getAcceptsNull, isImmutable, setAcceptsNull, setGenerics, setImmutable

    Methods inherited from class java.lang.Object

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

    • AffineTransform2DSerializer

      public AffineTransform2DSerializer()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.geotools.referencing.operation.transform.AffineTransform2D affineTransform2D)
      Specified by:
      write in class com.esotericsoftware.kryo.Serializer<org.geotools.referencing.operation.transform.AffineTransform2D>
    • read

      public org.geotools.referencing.operation.transform.AffineTransform2D read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<org.geotools.referencing.operation.transform.AffineTransform2D> aClass)
      Specified by:
      read in class com.esotericsoftware.kryo.Serializer<org.geotools.referencing.operation.transform.AffineTransform2D>