|
intra-mart(R) 5.1 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.co.intra_mart.foundation.utility.report.FilterMessageReporter jp.co.intra_mart.foundation.utility.report.LineReportFilter
jp.co.intra_mart.common.aid.jdk.util.report.LineReportFilter
クラスを使用してください。
メッセージを行出力するためのフィルタークラスです。
このクラスを利用すると、report メソッドに渡されたメッセージ文字列に
改行コードを付加して、行出力することができます。
以下のようなプログラムにより、ログファイルをログファイルを作成することが
できます。
FIle logFile = new File("test.log");これで、変数 reporter の report メソッドを呼び出す毎に、 ファイル test.log に report メソッド指定したメッセージが 1行として出力されます。
ReportFileWriter writer = new ReportFileWriter(logFile);
FileReporter writer = new FileReporter(writer);
MessageReporter reporter = new LineReportFilter(writer);
ReportLevel
フィールドの概要 |
クラス jp.co.intra_mart.foundation.utility.report.FilterMessageReporter から継承したフィールド |
out |
コンストラクタの概要 | |
LineReportFilter(MessageReporter out)
推奨されていません。 指定された基礎出力ストリームにメッセージを一行書き込む フィルターストリームを作成します。 |
メソッドの概要 | |
void |
report(java.lang.Object data)
推奨されていません。 基礎出力ストリームに対してメッセージを出力します。 |
void |
report(java.lang.String message)
推奨されていません。 メッセージを出力します。 |
クラス jp.co.intra_mart.foundation.utility.report.FilterMessageReporter から継承したメソッド |
close, flush |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public LineReportFilter(MessageReporter out)
out
- 基礎出力ストリームメソッドの詳細 |
public void report(java.lang.String message)
MessageReporter
内の report
FilterMessageReporter
内の report
message
- メッセージpublic void report(java.lang.Object data)
MessageReporter
内の report
FilterMessageReporter
内の report
data
- データ
|
intra-mart(R) 5.1 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |