1package org.bouncycastle.asn1;
2
3import java.io.IOException;
4
5/**
6 * A NULL object.
7 */
8public class DERNull
9    extends ASN1Null
10{
11    public static final DERNull INSTANCE = new DERNull();
12
13    // BEGIN android-changed
14    private static final byte[]  zeroBytes = new byte[0];
15    // END android-changed
16
17    // BEGIN android-changed
18    protected DERNull()
19    // END android-changed
20    {
21    }
22
23    void encode(
24        DEROutputStream  out)
25        throws IOException
26    {
27        out.writeEncoded(NULL, zeroBytes);
28    }
29}
30