パッケージ jp.co.osstech.libjeid.dl
クラス DriverLicenseRegisteredDomicile
java.lang.Object
jp.co.osstech.libjeid.dl.DriverLicenseRegisteredDomicile
DriverLicenseRegisteredDomicileは、仕様書の「記載事項(本籍)」に対応するクラスです。
-
コンストラクタの概要
コンストラクタコンストラクタ説明DriverLicenseRegisteredDomicile(byte[] encoded, DriverLicenseExternalCharactors extChars) DriverLicenseRegisteredDomicileオブジェクトを構築します。 -
メソッドの概要
修飾子とタイプメソッド説明byte[]符号化データを返します。本籍をDLStringオブジェクトで返します。推奨されていません。getRegisteredDomicile().toHTML() を利用してください。推奨されていません。getRegisteredDomicile().toJSON() を利用してください。toString()Stringオブジェクトを返します。
-
コンストラクタの詳細
-
DriverLicenseRegisteredDomicile
public DriverLicenseRegisteredDomicile(byte[] encoded, DriverLicenseExternalCharactors extChars) throws IOException DriverLicenseRegisteredDomicileオブジェクトを構築します。- パラメータ:
encoded- 符号化データ- 例外:
IOException- デコードエラー
-
-
メソッドの詳細
-
toString
Stringオブジェクトを返します。 -
getEncoded
public byte[] getEncoded()符号化データを返します。- 戻り値:
- 符号化データ
-
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のエンコードエラー
-