public static void writeStringArray(String[] array, DataOutput out) throws IOException {

    InternalDataSerializer.checkOut(out);


    StaticSerialization.writeStringArray(array, out);

    if (logger.isTraceEnabled(LogMarker.SERIALIZER_VERBOSE)) {
      int length;
      if (array == null) {
        length = -1;
      } else {
        length = array.length;
      }

      logger.trace(LogMarker.SERIALIZER_VERBOSE, "Writing String array of length {}", length);
    }
  }
Writes an array of <code>String</code>s to a <code>DataOutput</code>. This method will
serialize a <code>null</code> array and not throw a <code>NullPointerException</code>.

@param array the array of <code>String</code>s to write
@param out the {@link DataInput} to write to

@throws IOException A problem occurs while writing to <code>out</code>

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