public static void writeStringArray(String[] array, DataOutput out) throws IOException {
    int length;
    if (array == null) {
      length = -1;
    } else {
      length = array.length;
    }
    writeArrayLength(length, out);
    if (length > 0) {
      for (int i = 0; i < length; i++) {
        writeString(array[i], out);
      }
    }
  }
Reads an instance of <code>String</code> from a <code>DataInput</code>. The return value may be
<code>null</code>.

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

@see #writeString
geode-serialization/src/main/java/org/apache/geode/internal/serialization/StaticSerialization.java