Package nablarch.common.databind.csv
Class ObjectCsvMapperSupport<T>
java.lang.Object
nablarch.common.databind.csv.ObjectCsvMapperSupport<T>
- Type Parameters:
T- マッピング対象のクラス
- All Implemented Interfaces:
Closeable,AutoCloseable,ObjectMapper<T>
- Direct Known Subclasses:
BeanCsvMapper,MapCsvMapper
オブジェクトをCSVにマッピングするのをサポートするクラス。
- Author:
- Naoki Yamamoto
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
config
CSV用の設定情報
-
-
Constructor Details
-
ObjectCsvMapperSupport
コンストラクタ。- Parameters:
config- フォーマット定義writer- 出力リソース
-
-
Method Details
-
writeHeader
protected void writeHeader()ヘッダーレコードを書き込む。 -
read
Description copied from interface:ObjectMapperオブジェクトにマッピングする。- Specified by:
readin interfaceObjectMapper<T>- Returns:
- オブジェクト
-
write
Description copied from interface:ObjectMapperオブジェクトの情報をアウトプットする。- Specified by:
writein interfaceObjectMapper<T>- Parameters:
object- オブジェクト
-
convertValues
JavaオブジェクトをCSVに出力するためのObject配列に変換する。 変換するObject配列は、CSVファイルに出力する要素順に並べる必要がある。- Parameters:
object- Javaオブジェクト- Returns:
- CSV出力用のObject配列
-
close
public void close()ストリームを閉じてリソースを解放する。- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceObjectMapper<T>
-