code: public void writeTo(String zoneID, OutputStream out) throws IOException {
          if (out instanceof DataOutput) {
              writeTo(zoneID, (DataOutput)out);
          } else {
              DataOutputStream dout = new DataOutputStream(out);
              writeTo(zoneID, (DataOutput)dout);
              dout.flush();
          }
      }
docs: Encodes a built DateTimeZone to the given stream. Call readFrom to
  decode the data into a DateTimeZone object.
  
  @param out  the output stream to receive the encoded DateTimeZone
  @since 1.5 (parameter added)