KickJava   Java API By Example, From Geeks To Geeks.

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


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

8 public abstract class ASN1Null
9     extends DERObject
10 {
11     public ASN1Null()
12     {
13     }
14
15     public int hashCode()
16     {
17         return 0;
18     }
19
20     public boolean equals(
21         Object o)
22     {
23         if ((o == null) || !(o instanceof ASN1Null))
24         {
25             return false;
26         }
27         
28         return true;
29     }
30
31     abstract void encode(DEROutputStream out)
32         throws IOException;
33 }
34
Popular Tags