public static String[] readStringArray(DataInput in) throws IOException {

    InternalDataSerializer.checkIn(in);

    String[] array = StaticSerialization.readStringArray(in);

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

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

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

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

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