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

クラス DriverLicenseRegisteredDomicile

java.lang.Object
jp.co.osstech.libjeid.dl.DriverLicenseRegisteredDomicile

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

    • DriverLicenseRegisteredDomicile

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

    • toString

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

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

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

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

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