jp.cssj.cti2.results
クラス DirectoryResults

java.lang.Object
  上位を拡張 jp.cssj.cti2.results.DirectoryResults
すべての実装されたインタフェース:
Results

public class DirectoryResults
extends Object
implements Results

ディレクトリに複数の結果を出力するResultsです。

バージョン:
$Id: DirectoryResults.java 817 2012-09-08 14:28:59Z miyabe $
作成者:
MIYABE Tatsuhiko

フィールドの概要
protected  int counter
           
protected  File dir
           
protected  String prefix
           
protected  String suffix
           
 
コンストラクタの概要
DirectoryResults(File dir, String prefix, String suffix)
          出力先ディレクトリとファイル名の前後を指定してオブジェクトを構築します。
 
メソッドの概要
 void end()
          一連のデータ出力を完了します。
 boolean hasNext()
          次の結果を出力可能であればtrueを返します。
 RandomBuilder nextBuilder(MetaSource metaSource)
          次の処理結果を構築するためのビルダを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

dir

protected final File dir

prefix

protected final String prefix

suffix

protected final String suffix

counter

protected int counter
コンストラクタの詳細

DirectoryResults

public DirectoryResults(File dir,
                        String prefix,
                        String suffix)
出力先ディレクトリとファイル名の前後を指定してオブジェクトを構築します。

ファイルはdirに出力され、ファイル名は prefix, 1から始まる通し番号, suffixを連結したものとなります。

パラメータ:
dir - 出力先ディレクトリです。
prefix - ファイル名の前に付ける文字列です。
suffix - ファイル名の後に付ける文字列です。
メソッドの詳細

hasNext

public boolean hasNext()
インタフェース Results の記述:
次の結果を出力可能であればtrueを返します。

定義:
インタフェース Results 内の hasNext
戻り値:
次の結果を出力可能であればtrueそうでなければfalse。

nextBuilder

public RandomBuilder nextBuilder(MetaSource metaSource)
インタフェース Results の記述:
次の処理結果を構築するためのビルダを返します。

定義:
インタフェース Results 内の nextBuilder
パラメータ:
metaSource - 出力データのメタ情報。
戻り値:
データ構築オブジェクト。

end

public void end()
インタフェース Results の記述:
一連のデータ出力を完了します。

定義:
インタフェース Results 内の end


©2012-2013 Zamasoft.