Class Lpad.LpadConverter
java.lang.Object
nablarch.common.databind.fixedlength.converter.Lpad.LpadConverter
- All Implemented Interfaces:
FieldConvert.FieldConverter<Lpad>
- Enclosing class:
- Lpad
値の変換を行う。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertOfRead(FixedLengthDataBindConfig fixedLengthDataBindConfig, FieldConfig fieldConfig, byte[] input) 読み込み時の変換を行う。byte[]convertOfWrite(FixedLengthDataBindConfig fixedLengthDataBindConfig, FieldConfig fieldConfig, Object output) 書き込み時の変換を行う。voidinitialize(Lpad annotation) アノテーションの設定値をもとに初期化を行う。
-
Constructor Details
-
LpadConverter
値の変換処理を行うクラスを構築する。 -
LpadConverter
public LpadConverter(char padChar) 指定された値を用いて値の変換処理を行うクラスを構築する。- Parameters:
padChar- 値の先頭に設定する文字
-
-
Method Details
-
initialize
Description copied from interface:FieldConvert.FieldConverterアノテーションの設定値をもとに初期化を行う。- Specified by:
initializein interfaceFieldConvert.FieldConverter<Lpad>- Parameters:
annotation- アノテーション
-
convertOfRead
public Object convertOfRead(FixedLengthDataBindConfig fixedLengthDataBindConfig, FieldConfig fieldConfig, byte[] input) Description copied from interface:FieldConvert.FieldConverter読み込み時の変換を行う。- Specified by:
convertOfReadin interfaceFieldConvert.FieldConverter<Lpad>- 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<Lpad>- Parameters:
fixedLengthDataBindConfig- 固定長の設定fieldConfig- フィールドの設定output- 出力値- Returns:
- 出力後の値
-