|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.terasoluna.fw.file.dao.standard.AbstractFileLineWriter<T>
jp.terasoluna.fw.file.dao.standard.FixedFileLineWriter<T>
T - ファイル行オブジェクト。public class FixedFileLineWriter<T>
固定長ファイル用のファイルアクセス(データ書込)クラス.
ファイル行オブジェクトからデータを読み込み、 1行分のデータを固定長形式でファイルに書き込む。
※利用するファイル行オブジェクトのアノテーション項目FileFormatの設定項目| 論理項目名 | 物理項目名 | デフォルト値 | 必須性 |
行区切り文字 |
lineFeedChar |
システムの行区切り文字 |
オプション |
ファイルエンコーディング |
fileEncodeing |
システムのファイルエンコーディング |
オプション |
ファイル上書きフラグ |
overWriteFlg |
false |
オプション |
InputFileColumn、@OutputFileColumnの設定項目| 論理項目名 | 物理項目名 | デフォルト値 | 必須性 |
カラムインデックス |
columnIndex |
- | 必須 |
フォーマット |
columnFormat |
"" |
オプション |
バイト長 |
bytes |
-1 |
オプション |
パディング種別 |
paddingType |
パディングなし |
オプション |
パディング文字 |
paddingChar |
' ' |
オプション |
トリム種別 |
trimType |
トリムなし |
オプション |
トリム文字 |
trimChar |
' ' |
オプション |
文字変換種別 |
stringConverter |
NullStringConverter.class |
オプション |
| フィールドの概要 | |
|---|---|
private static char |
DELIMITER
区切り文字。 |
private static char |
ENCLOSE_CHAR
囲み文字。 |
| コンストラクタの概要 | |
|---|---|
FixedFileLineWriter(java.lang.String fileName,
java.lang.Class<T> clazz,
java.util.Map<java.lang.String,ColumnFormatter> columnFormatterrMap)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
char |
getDelimiter()
区切り文字を取得する。 |
char |
getEncloseChar()
囲み文字を取得する。 |
protected boolean |
isCheckByte(OutputFileColumn outputFileColumn)
対象カラムに対するバイト数チェックを行うかを返す。 |
| クラス jp.terasoluna.fw.file.dao.standard.AbstractFileLineWriter から継承されたメソッド |
|---|
checkWriteTrailer, closeFile, getColumn, getFieldArray, getFields, getFileName, getLineFeedChar, getMethods, getWriter, init, printDataLine, printHeaderLine, printTrailerLine, setColumnFormatterMap, setWriteData |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
private static final char DELIMITER
private static final char ENCLOSE_CHAR
| コンストラクタの詳細 |
|---|
public FixedFileLineWriter(java.lang.String fileName,
java.lang.Class<T> clazz,
java.util.Map<java.lang.String,ColumnFormatter> columnFormatterrMap)
fileName - ファイル名clazz - パラメータクラスcolumnFormatterrMap - テキスト取得ルール| メソッドの詳細 |
|---|
protected boolean isCheckByte(OutputFileColumn outputFileColumn)
AbstractFileLineWriter<T> 内の isCheckByteoutputFileColumn - 対象カラムのOutputFileColumn情報
public char getDelimiter()
AbstractFileLineWriter<T> 内の getDelimiterpublic char getEncloseChar()
AbstractFileLineWriter<T> 内の getEncloseChar
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||