FileDocCategorySizeDatePackage
ASN1OutputStream.javaAPI DocAzureus 3.0.3.4731Tue Jun 08 05:12:56 BST 2004org.bouncycastle.asn1

ASN1OutputStream

public class ASN1OutputStream extends DEROutputStream

Fields Summary
Constructors Summary
public ASN1OutputStream(OutputStream os)

        super(os);
    
Methods Summary
public voidwriteObject(java.lang.Object obj)

        if (obj == null)
        {
            writeNull();
        }
        else if (obj instanceof DERObject)
        {
            ((DERObject)obj).encode(this);
        }
        else if (obj instanceof DEREncodable)
        {
            ((DEREncodable)obj).getDERObject().encode(this);
        }
        else
        {
            throw new IOException("object not ASN1Encodable");
        }