code: public static void writeStringArray(DataOutput out, String[] s) throws IOException {
          out.writeInt(s.length);
          for (int i = 0; i < s.length; i++) {
              writeString(out, s[i]);
          }
      }
docs: /*
  Write a String array as a Nework Int N, followed by Int N Byte Array Strings.
  Could be generalised using introspection.