docs: 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();
          }
      }