intra-mart 6.1.14

jp.co.intra_mart.foundation.utility.report
クラス PrintStreamReporter

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

推奨されていません。 jp.co.intra_mart.common.aid.jdk.util.report.PrintStreamReporter クラスを使用してください。

public class PrintStreamReporter
extends AbstractMessageReporter

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

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

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

コンストラクタの概要
PrintStreamReporter(PrintStream out)
          推奨されていません。 指定された基礎出力ストリームにメッセージを書き込む Reporter オブジェクトを作成します。
 
メソッドの概要
 void close()
          推奨されていません。 このオブジェクトを閉じます。
 void flush()
          推奨されていません。 このオブジェクトのバッファの情報をすべて出力します。
 void report(String message)
          推奨されていません。 メッセージを出力します。
 
クラス jp.co.intra_mart.foundation.utility.report.AbstractMessageReporter から継承したメソッド
report
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PrintStreamReporter

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

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

report

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

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

close

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

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

flush

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

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

intra-mart 6.1.14

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