intra-mart(R)
5.1

jp.co.intra_mart.common.aid.jdk.util.report
クラス PrintStreamReporter

java.lang.Object
  拡張jp.co.intra_mart.common.aid.jdk.util.report.AbstractMessageReporter
      拡張jp.co.intra_mart.common.aid.jdk.util.report.PrintStreamReporter
すべての実装インタフェース:
MessageReporter

public class PrintStreamReporter
extends AbstractMessageReporter

メッセージ出力用クラスです。

このクラスは、指定の PrintStream に対してメッセージを出力するための 機能を実装しています。 例えば、このクラスのコンストラクタの引数に java.lang.System.out を指定した 場合、標準出力に対してメッセージを出力することができます。
このクラスの特徴は、report メソッドに渡されたメッセージを PrintStream の println メソッドに渡します。 これにより、report メソッドの呼び出し毎にメッセージを改行付きで 指定の PrintStream に出力することができます(1行毎に出力)。

導入されたバージョン:
version 5.0

コンストラクタの概要
PrintStreamReporter(java.io.PrintStream out)
          指定された基礎出力ストリームにメッセージを書き込む Reporter オブジェクトを作成します。
 
メソッドの概要
 void close()
          このオブジェクトを閉じます。
 void flush()
          このオブジェクトのバッファの情報をすべて出力します。
 void report(java.lang.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
 

コンストラクタの詳細

PrintStreamReporter

public PrintStreamReporter(java.io.PrintStream out)
指定された基礎出力ストリームにメッセージを書き込む Reporter オブジェクトを作成します。

パラメータ:
out - 基礎出力ストリーム
メソッドの詳細

report

public void report(java.lang.String message)
メッセージを出力します。 このオブジェクトが既に閉じられている場合、このメソッドは 何も行いません。

定義:
インタフェース MessageReporter 内の report
定義:
クラス AbstractMessageReporter 内の report
パラメータ:
message - メッセージ

close

public void close()
           throws java.io.IOException
このオブジェクトを閉じます。 このオブジェクトに関わる全てのリソースを開放します。 オブジェクトが閉じられると、report メソッドは何もしなくなります。

定義:
インタフェース MessageReporter 内の close
オーバーライド:
クラス AbstractMessageReporter 内の close
例外:
java.io.IOException - 入出力エラー

flush

public void flush()
           throws java.io.IOException
このオブジェクトのバッファの情報をすべて出力します。 また、このメソッドは基礎ストリームも同時にフラッシュします。

定義:
インタフェース MessageReporter 内の flush
オーバーライド:
クラス AbstractMessageReporter 内の flush
例外:
java.io.IOException - 入出力エラー

intra-mart(R)
5.1

Copyright © 2000-2006 NTT DATA INTRAMART CO.,LTD. All Rights Reserved.