public static double[] readDoubleArray(DataInput in) throws IOException {

    InternalDataSerializer.checkIn(in);

    int length = InternalDataSerializer.readArrayLength(in);
    if (length == -1) {
      return null;
    } else {
      double[] array = new double[length];
      for (int i = 0; i < length; i++) {
        array[i] = in.readDouble();
      }

      if (logger.isTraceEnabled(LogMarker.SERIALIZER_VERBOSE)) {
        logger.trace(LogMarker.SERIALIZER_VERBOSE, "Read double array of length {}", length);
      }

      return array;
    }
  }
Reads an array of <code>double</code>s from a <code>DataInput</code>.

@param in the {@link DataInput} to read from
@return the deserialized array of <code>double</code>s

@throws IOException A problem occurs while reading from <code>in</code>

@see #writeDoubleArray
geode-core/src/main/java/org/apache/geode/DataSerializer.java