T
- ファイル行オブジェクト。public class FixedFileLineWriter<T> extends AbstractFileLineWriter<T>
ファイル行オブジェクトからデータを読み込み、 1行分のデータを固定長形式でファイルに書き込む。
※利用するファイル行オブジェクトのアノテーション項目FileFormat
の設定項目論理項目名 | 物理項目名 | デフォルト値 | 必須性 |
行区切り文字 |
lineFeedChar |
システムの行区切り文字 |
オプション |
ファイルエンコーディング |
fileEncoding |
システムのファイルエンコーディング |
オプション |
ファイル上書きフラグ |
overWriteFlg |
false |
オプション |
InputFileColumn
、@OutputFileColumn
の設定項目論理項目名 | 物理項目名 | デフォルト値 | 必須性 |
カラムインデックス |
columnIndex |
- | 必須 |
フォーマット |
columnFormat |
"" |
オプション |
バイト長 |
bytes |
-1 |
オプション |
パディング種別 |
paddingType |
パディングなし |
オプション |
パディング文字 |
paddingChar |
' ' |
オプション |
トリム種別 |
trimType |
トリムなし |
オプション |
トリム文字 |
trimChar |
' ' |
オプション |
文字変換種別 |
stringConverter |
NullStringConverter.class |
オプション |
コンストラクタと説明 |
---|
FixedFileLineWriter(String fileName,
Class<T> clazz,
Map<String,ColumnFormatter> columnFormatterrMap)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
char |
getDelimiter()
区切り文字を取得する。
|
char |
getEncloseChar()
囲み文字を取得する。
|
protected boolean |
isCheckByte(int columnByte)
対象カラムに対するバイト数チェックを行うかを返す。
|
protected boolean |
isCheckByte(OutputFileColumn outputFileColumn)
対象カラムに対するバイト数チェックを行うかを返す。
|
protected boolean |
isCheckEncloseChar()
囲み文字が設定されていない事をチェックするかを返す。
|
checkWriteTrailer, closeFile, getColumn, getColumnEncloseChar, getFields, getFileName, getLineFeedChar, getMethods, getWriter, init, isCheckColumnAnnotationCount, printDataLine, printHeaderLine, printTrailerLine, setColumnFormatterMap, setLineFeedChar, setWriteData
protected boolean isCheckByte(OutputFileColumn outputFileColumn)
isCheckByte
クラス内 AbstractFileLineWriter<T>
outputFileColumn
- 対象カラムのOutputFileColumn情報protected boolean isCheckByte(int columnByte)
isCheckByte
クラス内 AbstractFileLineWriter<T>
columnByte
- 対象カラムのバイト数protected boolean isCheckEncloseChar()
isCheckEncloseChar
クラス内 AbstractFileLineWriter<T>
public char getDelimiter()
getDelimiter
クラス内 AbstractFileLineWriter<T>
public char getEncloseChar()
getEncloseChar
クラス内 AbstractFileLineWriter<T>
Copyright © 2014 NTT DATA Corporation.