public static int[] readIntArray(DataInput in) throws IOException {

    InternalDataSerializer.checkIn(in);

    int[] result = StaticSerialization.readIntArray(in);

    if (logger.isTraceEnabled(LogMarker.SERIALIZER_VERBOSE)) {
      logger.trace(LogMarker.SERIALIZER_VERBOSE, "Read int array of length {}",
          result == null ? "null" : result.length);
    }

    return result;
  }
Reads an <code>int</code> array from a <code>DataInput</code>.

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

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

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