jp.cssj.rsr.helpers
クラス RandomBuilderWrapper

java.lang.Object
  拡張jp.cssj.rsr.helpers.RandomBuilderWrapper
すべての実装インタフェース:
RandomBuilder
直系の既知のサブクラス:
RandomBuilderMeasurer, RandomBuilderPositionSupport

public class RandomBuilderWrapper
extends Object
implements RandomBuilder

RandomBuilderのラッパークラスです。

バージョン:
$Id: RandomBuilderWrapper.java 324 2009-08-02 05:51:25Z miyabe $
作成者:
MIYABE Tatsuhiko

入れ子クラスの概要
 
クラス jp.cssj.rsr.RandomBuilder から継承した入れ子クラス
RandomBuilder.PositionInfo
 
フィールドの概要
protected  RandomBuilder builder
           
 
コンストラクタの概要
RandomBuilderWrapper(RandomBuilder builder)
           
 
メソッドの概要
 void addBlock()
          断片を追加します。
 void closeBlock(int id)
          断片への書き込みを終了します。
 void dispose()
          構築のためのリソースを破棄して初期状態に戻します。
 void finish()
          追加済みのデータを結合して出力します。
 RandomBuilder.PositionInfo getPositionInfo()
          現在の断片の位置情報を返します(任意のオペレーション)。
 void insertBlockBefore(int anchorId)
          断片を挿入します。
 boolean supportsPositionInfo()
          位置情報をサポートしているかどうかを返します。
 void write(int id, byte[] b, int off, int len)
          データを断片に追加します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

builder

protected final RandomBuilder builder
コンストラクタの詳細

RandomBuilderWrapper

public RandomBuilderWrapper(RandomBuilder builder)
メソッドの詳細

addBlock

public void addBlock()
              throws IOException
インタフェース RandomBuilder の記述:
断片を追加します。

定義:
インタフェース RandomBuilder 内の addBlock
例外:
IOException

insertBlockBefore

public void insertBlockBefore(int anchorId)
                       throws IOException
インタフェース RandomBuilder の記述:
断片を挿入します。

定義:
インタフェース RandomBuilder 内の insertBlockBefore
パラメータ:
anchorId - 断片のID。
例外:
IOException

write

public void write(int id,
                  byte[] b,
                  int off,
                  int len)
           throws IOException
インタフェース RandomBuilder の記述:
データを断片に追加します。

定義:
インタフェース RandomBuilder 内の write
パラメータ:
id - 断片のID。
b - バイト列。
off - バイト列中のデータの開始位置。
len - バイト列中のデータの長さ。
例外:
IOException

closeBlock

public void closeBlock(int id)
                throws IOException
インタフェース RandomBuilder の記述:
断片への書き込みを終了します。 この呼び出しは必須ではありませんが、データの構築を効率化する可能性があります。

定義:
インタフェース RandomBuilder 内の closeBlock
パラメータ:
id - 断片のID。
例外:
IOException

finish

public void finish()
            throws IOException
インタフェース RandomBuilder の記述:
追加済みのデータを結合して出力します。

定義:
インタフェース RandomBuilder 内の finish
例外:
IOException

dispose

public void dispose()
インタフェース RandomBuilder の記述:
構築のためのリソースを破棄して初期状態に戻します。

定義:
インタフェース RandomBuilder 内の dispose

getPositionInfo

public RandomBuilder.PositionInfo getPositionInfo()
インタフェース RandomBuilder の記述:
現在の断片の位置情報を返します(任意のオペレーション)。

定義:
インタフェース RandomBuilder 内の getPositionInfo
戻り値:
位置情報。

supportsPositionInfo

public boolean supportsPositionInfo()
インタフェース RandomBuilder の記述:
位置情報をサポートしているかどうかを返します。

定義:
インタフェース RandomBuilder 内の supportsPositionInfo
戻り値:
位置情報をサポートしていればtrue。


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