public String getAsString() throws IOException {
        if (tag == tag_UTF8String)
            return getUTF8String();
        else if (tag == tag_PrintableString)
            return getPrintableString();
        else if (tag == tag_T61String)
            return getT61String();
        else if (tag == tag_IA5String)
            return getIA5String();
        /*
          else if (tag == tag_UniversalString)
          return getUniversalString();
        */
        else if (tag == tag_BMPString)
            return getBMPString();
        else if (tag == tag_GeneralString)
            return getGeneralString();
        else
            return null;
    }
public String getAsString ( ) throws IOException { if ( tag == tag_UTF8String ) return getUTF8String ( ) ; else if ( tag == tag_PrintableString ) return getPrintableString ( ) ; else if ( tag == tag_T61String ) return getT61String ( ) ; else if ( tag == tag_IA5String ) return getIA5String ( ) ; else if ( tag == tag_BMPString ) return getBMPString ( ) ; else if ( tag == tag_GeneralString ) return getGeneralString ( ) ; else return null ; }
TBD: Need encoder for UniversalString before it can be handled.