001 package org.apache.commons.ssl.asn1; 002 003 import java.io.IOException; 004 005 /** A NULL object. */ 006 public class DERNull 007 extends ASN1Null { 008 public static final DERNull INSTANCE = new DERNull(); 009 010 byte[] zeroBytes = new byte[0]; 011 012 public DERNull() { 013 } 014 015 void encode( 016 DEROutputStream out) 017 throws IOException { 018 out.writeEncoded(NULL, zeroBytes); 019 } 020 }