1 19 20 package com.maverick.crypto.asn1; 21 22 import java.io.IOException ; 23 24 27 public class BERNull 28 extends DERNull 29 { 30 public BERNull() 31 { 32 } 33 34 void encode( 35 DEROutputStream out) 36 throws IOException  37 { 38 if (out instanceof ASN1OutputStream || out instanceof BEROutputStream) 39 { 40 out.write(NULL); 41 out.write(0); 42 out.write(0); 43 } 44 else 45 { 46 super.encode(out); 47 } 48 } 49 } 50 | Popular Tags |