1 package org.bouncycastle.asn1; 2 3 import java.io.IOException; 4 5 /** 6 * A NULL object. 7 */ 8 public abstract class ASN1Null 9 extends ASN1Object 10 { 11 // BEGIN android-changed 12 /*package*/ ASN1Null() 13 { 14 } 15 // END android-changed 16 17 public int hashCode() 18 { 19 return -1; 20 } 21 22 boolean asn1Equals( 23 DERObject o) 24 { 25 if (!(o instanceof ASN1Null)) 26 { 27 return false; 28 } 29 30 return true; 31 } 32 33 abstract void encode(DEROutputStream out) 34 throws IOException; 35 36 public String toString() 37 { 38 return "NULL"; 39 } 40 } 41