public void encode(OutputStream out) throws CertificateException, IOException {
  if (rawCertInfo == null) {
    DerOutputStream tmp=new DerOutputStream();
    emit(tmp);
    rawCertInfo=tmp.toByteArray();
  }
  out.write(rawCertInfo.clone());
}

public void encode ( OutputStream out ) throws CertificateException , IOException { if ( rawCertInfo == null ) { DerOutputStream tmp = new DerOutputStream ( ) ; emit ( tmp ) ; rawCertInfo = tmp . toByteArray ( ) ; } out . write ( rawCertInfo . clone ( ) ) ; }
appends the certificate to an output stream .
