パッケージ jp.co.osstech.libjeid.dl

クラス DriverLicenseRegisteredDomicile


  • public class DriverLicenseRegisteredDomicile
    extends java.lang.Object
    DriverLicenseRegisteredDomicileは、仕様書の「記載事項(本籍)」に対応するクラスです。
    • コンストラクタの詳細

      • DriverLicenseRegisteredDomicile

        public DriverLicenseRegisteredDomicile​(byte[] encoded,
                                               DriverLicenseExternalCharactors extChars)
                                        throws java.io.IOException
        DriverLicenseRegisteredDomicileオブジェクトを構築します。
        パラメータ:
        encoded - 符号化データ
        例外:
        java.io.IOException - デコードエラー
    • メソッドの詳細

      • toString

        public java.lang.String toString()
        Stringオブジェクトを返します。
        オーバーライド:
        toString クラス内 java.lang.Object
        戻り値:
        Stringオブジェクト
      • getEncoded

        public byte[] getEncoded()
        符号化データを返します。
        戻り値:
        符号化データ
      • getRegisteredDomicile

        public DLString getRegisteredDomicile()
        本籍をDLStringオブジェクトで返します。
        戻り値:
        本籍
      • getRegisteredDomicileHtml

        public java.lang.String getRegisteredDomicileHtml​(DriverLicenseExternalCharactors extChars)
                                                   throws java.io.IOException
        推奨されていません。
        getRegisteredDomicile().toHTML() を利用してください。
        本籍をHTML表現で返します。 外字をPNGエンコードしてData URI形式で表示します。 詳細は運転免許証の文字についてを参照してください。
        パラメータ:
        extChars - 外字
        戻り値:
        本籍
        例外:
        java.io.IOException - 外字のデコードエラーまたはPNGのエンコードエラー
      • getRegisteredDomicileJson

        public java.lang.String getRegisteredDomicileJson​(DriverLicenseExternalCharactors extChars)
                                                   throws java.io.IOException
        推奨されていません。
        getRegisteredDomicile().toJSON() を利用してください。
        本籍をJSON表現で返します。 JIS X 0208に含まれる文字の場合はUnicodeテキストが返ります。
        外字の場合は画像をPNGエンコードし、それを更にBase64エンコードした文字列が返ります。
        詳細は運転免許証の文字についてを参照してください。
        パラメータ:
        extChars - 外字
        戻り値:
        本籍
        例外:
        java.io.IOException - 外字のデコードエラーまたはPNGのエンコードエラー