Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.asn1;
 
Stream that outputs encoding based on definite length.
 
 public class DLOutputStream
    extends ASN1OutputStream
    public DLOutputStream(
        OutputStream os)
    {
        super(os);
    }
    public void writeObject(
        ASN1Encodable obj)
        throws IOException
    {
        if (obj != null)
        {
            obj.toASN1Primitive().toDLObject().encode(this);
        }
        else
        {
            throw new IOException("null object detected");
        }
    }
New to GrepCode? Check out our FAQ X