1 package com.lowagie.bc.asn1; 2 3 import java.io.IOException; 4 5 8 public class BERNull 9 extends DERNull 10 { 11 public BERNull() 12 { 13 } 14 15 void encode( 16 DEROutputStream out) 17 throws IOException 18 { 19 if (out instanceof ASN1OutputStream || out instanceof BEROutputStream) 20 { 21 out.write(NULL); 22 out.write(0); 23 out.write(0); 24 } 25 else 26 { 27 super.encode(out); 28 } 29 } 30 } 31 | Popular Tags |