|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.co.cybec.cb3.accessor.fileaccess.RecordFieldWriterFormat
public class RecordFieldWriterFormat
ファイルのレコード項目をフォーマットするクラス(Writer用)。
コンストラクタの概要 | |
---|---|
RecordFieldWriterFormat(String filepath,
String field)
コンストラクタ |
メソッドの概要 | |
---|---|
String |
format(String pattern,
String type,
String data)
引数の文字列をフォーマットします。 |
String |
padding(String length,
String algin,
String padding,
String data)
引数の文字列をパディングします。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public RecordFieldWriterFormat(String filepath, String field)
filepath
- 設定ファイルパスfield
- 項目名メソッドの詳細 |
---|
public String format(String pattern, String type, String data) throws DataFormatException
RecordFieldWriterFormatable
内の format
pattern
- フォーマットtype
- タイプdata
- フォーマット対象の文字列
DataFormatException
- データ型の変換に失敗したときに発生します。public String padding(String length, String algin, String padding, String data) throws DataFormatException
RecordFieldWriterFormatable
内の padding
length
- バイト数algin
- アラインメント指定子(右寄せ・左寄せ)padding
- パディング文字data
- パディング対象の文字列
DataFormatException
- 引数に指定された値のフォーマットに間違いがある場合に発生します。
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |