public void encode(Tag implicitTag, OutputStream ostream) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); content.encode(bos); byte[] contentBytes = bos.toByteArray(); ASN1Header head = new ASN1Header(implicitTag, FORM, contentBytes.length ); head.encode(ostream); ostream.write(contentBytes);
public void encode(OutputStream ostream) throws IOException { encode(tag, ostream);
    public void encode(Tag implicitTag, OutputStream ostream)        throws IOException    {        ByteArrayOutputStream bos = new ByteArrayOutputStream();        content.encode(bos);        byte[] contentBytes = bos.toByteArray();        ASN1Header head = new ASN1Header(implicitTag, FORM,            contentBytes.length );        head.encode(ostream);        ostream.write(contentBytes);    }