コード例 #1
0
  @DSGenerator(
      tool_name = "Doppelganger",
      tool_version = "2.0",
      generated_on = "2013-12-30 13:00:13.244 -0500",
      hash_original_method = "D3D7CE50527B3D09D53342883B1EBD33",
      hash_generated_method = "F90FE6D021EA51EE61FD714A879B9874")
  public void encode(DEROutputStream out) throws IOException {
    if (out instanceof ASN1OutputStream || out instanceof BEROutputStream) {
      out.write(CONSTRUCTED | OCTET_STRING);

      out.write(0x80);

      //
      // write out the octet array
      //
      Enumeration e = getObjects();
      while (e.hasMoreElements()) {
        out.writeObject(e.nextElement());
      }

      out.write(0x00);
      out.write(0x00);
    } else {
      super.encode(out);
    }
  }