jp.cssj.cti2.results
クラス DirectoryResults

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

public class DirectoryResults
extends Object
implements Results

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

バージョン:
$Id: SingleResult.java 312 2009-07-30 08:37:37Z miyabe $
作成者:
MIYABE Tatsuhiko

フィールドの概要
protected  int counter
           
protected  File dir
           
protected  String prefix
           
protected  String suffix
           
 
コンストラクタの概要
DirectoryResults(File dir, String prefix, String suffix)
          出力先ディレクトリとファイル名の前後を指定してオブジェクトを構築します。
 
メソッドの概要
 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 - 出力データのメタ情報。
戻り値:
データ構築オブジェクト。


(c)2008-2009 GNN & Co.,Ltd.