Class DefaultConverter
java.lang.Object
nablarch.common.databind.fixedlength.converter.DefaultConverter
- All Implemented Interfaces:
FieldConvert.FieldConverter<Annotation>
デフォルトのコンバータ。
- Author:
- Naoki Yamamoto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertOfRead(FixedLengthDataBindConfig fixedLengthDataBindConfig, FieldConfig fieldConfig, byte[] input) 読み込み時の変換を行う。byte[]convertOfWrite(FixedLengthDataBindConfig fixedLengthDataBindConfig, FieldConfig fieldConfig, Object output) 書き込み時の変換を行う。voidinitialize(Annotation annotation) アノテーションの設定値をもとに初期化を行う。
-
Constructor Details
-
DefaultConverter
public DefaultConverter()
-
-
Method Details
-
initialize
Description copied from interface:FieldConvert.FieldConverterアノテーションの設定値をもとに初期化を行う。- Specified by:
initializein interfaceFieldConvert.FieldConverter<Annotation>- Parameters:
annotation- アノテーション
-
convertOfRead
public Object convertOfRead(FixedLengthDataBindConfig fixedLengthDataBindConfig, FieldConfig fieldConfig, byte[] input) Description copied from interface:FieldConvert.FieldConverter読み込み時の変換を行う。- Specified by:
convertOfReadin interfaceFieldConvert.FieldConverter<Annotation>- Parameters:
fixedLengthDataBindConfig- 固定長の設定fieldConfig- フィールドの設定input- 入力値- Returns:
- 変換後の値
-
convertOfWrite
public byte[] convertOfWrite(FixedLengthDataBindConfig fixedLengthDataBindConfig, FieldConfig fieldConfig, Object output) Description copied from interface:FieldConvert.FieldConverter書き込み時の変換を行う。- Specified by:
convertOfWritein interfaceFieldConvert.FieldConverter<Annotation>- Parameters:
fixedLengthDataBindConfig- 固定長の設定fieldConfig- フィールドの設定output- 出力値- Returns:
- 出力後の値
-