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