jp.co.cybec.cb3.accessor.fileaccess
インタフェース RecordFieldReaderFormatable

既知の実装クラスの一覧:
RecordFieldReaderFormat

public interface RecordFieldReaderFormatable

ファイルのレコード項目をフォーマットするためのインタフェース(Reader用)。

作成者:
Jianming Guo

メソッドの概要
 String format(String pattern, String type, String data)
          引数の文字列をフォーマットします。
 String trim(String algin, String padding, String data)
          引数の文字列をトリムします。
 

メソッドの詳細

trim

String trim(String algin,
            String padding,
            String data)
            throws DataFormatException
引数の文字列をトリムします。 (パディング文字を取り除きます)

パラメータ:
algin - アラインメント指定子(右寄せ・左寄せ)
padding - パディング文字
data - トリム対象の文字列
戻り値:
パディング文字を取り除いた文字列
例外:
DataFormatException - 引数に指定された値のフォーマットに間違いがある場合に発生します。

format

String format(String pattern,
              String type,
              String data)
              throws DataFormatException
引数の文字列をフォーマットします。

パラメータ:
pattern - フォーマット
type - タイプ
data - フォーマット対象の文字列
戻り値:
フォーマット後の文字列
例外:
DataFormatException - 引数に指定された値のフォーマットに間違いがある場合に発生します。


Copyright © 2008 Cyber Beans Corporation. All Rights Reserved.