public void encode(OutputStream out) throws CertificateEncodingException {
  if (signedCert == null)   throw new CertificateEncodingException("Null certificate to encode");
  try {
    out.write(signedCert.clone());
  }
 catch (  IOException e) {
    throw new CertificateEncodingException(e.toString());
  }
}

public void encode ( OutputStream out ) throws CertificateEncodingException { if ( signedCert == null ) throw new CertificateEncodingException ( "Null certificate to encode" ) ; try { out . write ( signedCert . clone ( ) ) ; } catch ( IOException e ) { throw new CertificateEncodingException ( e . toString ( ) ) ; } }
appends the certificate to an output stream .
