rcomp
b2008031701

org.phosphoresce.resourcecomp.plugin.writer
クラス ResourceAbstractWriter

java.lang.Object
  拡張org.phosphoresce.resourcecomp.plugin.writer.ResourceAbstractWriter
すべての実装インタフェース:
ResourceWriter, java.lang.Runnable
直系の既知のサブクラス:
ResourceFileWriter

public abstract class ResourceAbstractWriter
extends java.lang.Object
implements ResourceWriter

比較リソース出力上位抽象クラス
これを具象化するクラスはJava Reflectionからのインスタンス生成を行うために、 必ずpublicな(CompareSession session, Status[] status)コンストラクタを設けて下さい。

作成者:
Kitagawa

フィールドの概要
protected  long count
          出力処理中のカウント
protected  CompareSession session
          リソース比較セッション
protected  long size
          全体のリソース比較結果出力数
protected  Status[] status
          出力対象ステータス
 
コンストラクタの概要
ResourceAbstractWriter(CompareSession session)
          コンストラクタ
ResourceAbstractWriter(CompareSession session, Status[] status)
          コンストラクタ
 
メソッドの概要
 long getCount()
          出力処理中のカウントを取得します。
 long getSize()
          全体のリソース比較結果出力数を取得します。
 void run()
          処理を実行します。
abstract  void write()
          比較リソースを出力します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

session

protected CompareSession session
リソース比較セッション


status

protected Status[] status
出力対象ステータス


size

protected long size
全体のリソース比較結果出力数


count

protected long count
出力処理中のカウント

コンストラクタの詳細

ResourceAbstractWriter

public ResourceAbstractWriter(CompareSession session,
                              Status[] status)
コンストラクタ

パラメータ:
session - リソース比較セッション
status - 出力対象ステータス

ResourceAbstractWriter

public ResourceAbstractWriter(CompareSession session)
コンストラクタ

パラメータ:
session - リソース比較セッション
メソッドの詳細

run

public final void run()
処理を実行します。

定義:
インタフェース java.lang.Runnable 内の run
関連項目:
Thread.run()

getSize

public long getSize()
全体のリソース比較結果出力数を取得します。

定義:
インタフェース ResourceWriter 内の getSize
戻り値:
全体のリソース比較結果出力数
関連項目:
ResultWriter.getSize()

getCount

public long getCount()
出力処理中のカウントを取得します。

定義:
インタフェース ResourceWriter 内の getCount
戻り値:
出力処理中のカウント
関連項目:
ResultWriter.getCount()

write

public abstract void write()
                    throws CompareException
比較リソースを出力します。

定義:
インタフェース ResourceWriter 内の write
例外:
CompareException - 正常に出力が行えなかった場合に発生
関連項目:
ResourceWriter.write()

rcomp
b2008031701