|
intra-mart 6.1.14 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.co.intra_mart.common.aid.jdk.util.report.AbstractMessageReporter jp.co.intra_mart.common.aid.jdk.util.report.PrintStreamReporter
メッセージ出力用クラスです。
このクラスは、指定の PrintStream に対してメッセージを出力するための
機能を実装しています。
例えば、このクラスのコンストラクタの引数に java.lang.System.out を指定した
場合、標準出力に対してメッセージを出力することができます。
このクラスの特徴は、report メソッドに渡されたメッセージを
PrintStream の println メソッドに渡します。
これにより、report メソッドの呼び出し毎にメッセージを改行付きで
指定の PrintStream に出力することができます(1行毎に出力)。
コンストラクタの概要 | |
PrintStreamReporter(PrintStream out)
指定された基礎出力ストリームにメッセージを書き込む Reporter オブジェクトを作成します。 |
メソッドの概要 | |
void |
close()
このオブジェクトを閉じます。 |
void |
flush()
このオブジェクトのバッファの情報をすべて出力します。 |
void |
report(String message)
メッセージを出力します。 |
クラス jp.co.intra_mart.common.aid.jdk.util.report.AbstractMessageReporter から継承したメソッド |
report |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public PrintStreamReporter(PrintStream out)
out
- 基礎出力ストリームメソッドの詳細 |
public void report(String message)
MessageReporter
内の report
AbstractMessageReporter
内の report
message
- メッセージpublic void close() throws IOException
MessageReporter
内の close
AbstractMessageReporter
内の close
IOException
- 入出力エラーpublic void flush() throws IOException
MessageReporter
内の flush
AbstractMessageReporter
内の flush
IOException
- 入出力エラー
|
intra-mart 6.1.14 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |