code: public void encode(DerOutputStream out) throws IOException {
          DerOutputStream tagged = new DerOutputStream();
          DerOutputStream tmp = new DerOutputStream();
  
          if (assigner != null) {
              DerOutputStream tmp2 = new DerOutputStream();
              // XXX - shd check is chars fit into PrintableString
              tmp2.putPrintableString(assigner);
              tagged.write(DerValue.createTag(DerValue.TAG_CONTEXT,
                                   false, TAG_ASSIGNER), tmp2);
          }
          if (party == null)
              throw  new IOException("Cannot have null partyName");
  
          // XXX - shd check is chars fit into PrintableString
          tmp.putPrintableString(party);
          tagged.write(DerValue.createTag(DerValue.TAG_CONTEXT,
                                   false, TAG_PARTYNAME), tmp);
  
          out.write(DerValue.tag_Sequence, tagged);
      }
docs: Encode the EDI party name into the DerOutputStream.
  
  @param out the DER stream to encode the EDIPartyName to.
  @exception IOException on encoding errors.