KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lowagie > bc > asn1 > DERNull


1 package com.lowagie.bc.asn1;
2
3 import java.io.IOException;
4
5 /**
6  * A NULL object.
7  */

8 public class DERNull
9     extends ASN1Null
10 {
11     byte[] zeroBytes = new byte[0];
12
13     public DERNull()
14     {
15     }
16
17     void encode(
18         DEROutputStream out)
19         throws IOException
20     {
21         out.writeEncoded(NULL, zeroBytes);
22     }
23     
24     public boolean equals(
25         Object o)
26     {
27         if ((o == null) || !(o instanceof DERNull))
28         {
29             return false;
30         }
31         
32         return true;
33     }
34 }
35
Popular Tags