Logo Search packages:      
Sourcecode: bouncycastle version File versions

BERNull.java

package org.bouncycastle.asn1;

import java.io.IOException;

/**
 * A BER NULL object.
 */
00008 public class BERNull
    extends DERNull
{
    public static final BERNull INSTANCE = new BERNull();

    public BERNull()
    {
    }

    void encode(
        DEROutputStream  out)
        throws IOException
    {
        if (out instanceof ASN1OutputStream || out instanceof BEROutputStream)
        {
            out.write(NULL);
        }
        else
        {
            super.encode(out);
        }
    }
}

Generated by  Doxygen 1.6.0   Back to index