Class DoubleArraySerializer

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    class DoubleArraySerializer
    extends Serializer<double[]>
    • Field Detail

      • EMPTY_DOUBLE_ARRAY

        private static final double[] EMPTY_DOUBLE_ARRAY
    • Constructor Detail

      • DoubleArraySerializer

        DoubleArraySerializer()
    • Method Detail

      • write

        public void write​(double[] obj,
                          DataStream out)
                   throws java.io.IOException
        Specified by:
        write in class Serializer<double[]>
        Throws:
        java.io.IOException
      • read

        public double[] read​(DataStream in)
                      throws java.io.IOException
        Specified by:
        read in class Serializer<double[]>
        Throws:
        java.io.IOException
      • skip

        public void skip​(DataStream in)
                  throws java.io.IOException
        Specified by:
        skip in class Serializer<double[]>
        Throws:
        java.io.IOException
      • toJson

        public void toJson​(double[] obj,
                           java.lang.StringBuilder builder)
        Specified by:
        toJson in class Serializer<double[]>
      • fromJson

        public double[] fromJson​(JsonReader in)
                          throws java.io.IOException
        Specified by:
        fromJson in class Serializer<double[]>
        Throws:
        java.io.IOException