code: public void writeTo(OutputStream out) throws IOException {
          if (!(out instanceof DataOutput)) {
              out = new DataOutputStream(out);
          }
  
          writeTo((DataOutput)out);
  
          out.flush();
      }
docs: Writes the ClassFile to the given OutputStream. When finished, the
  stream is flushed, but not closed.