jp.cssj.rsr.helpers
クラス RandomBuilderPositionSupport

java.lang.Object
  拡張jp.cssj.rsr.helpers.RandomBuilderWrapper
      拡張jp.cssj.rsr.helpers.RandomBuilderPositionSupport
すべての実装インタフェース:
RandomBuilder

public class RandomBuilderPositionSupport
extends RandomBuilderWrapper
implements RandomBuilder

各断片の位置情報をサポートするためのRandomBuilderのラッパーです。

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

入れ子クラスの概要
 
クラス jp.cssj.rsr.RandomBuilder から継承した入れ子クラス
RandomBuilder.PositionInfo
 
フィールドの概要
 
クラス jp.cssj.rsr.helpers.RandomBuilderWrapper から継承したフィールド
builder
 
コンストラクタの概要
RandomBuilderPositionSupport(RandomBuilder builder)
           
 
メソッドの概要
 void addBlock()
          断片を追加します。
 void closeBlock(int id)
          断片への書き込みを終了します。
 void finish()
          追加済みのデータを結合して出力します。
protected  jp.cssj.rsr.helpers.RandomBuilderPositionSupport.Fragment getFragment(int id)
           
 RandomBuilder.PositionInfo getPositionInfo()
          現在の断片の位置情報を返します(任意のオペレーション)。
 void insertBlockBefore(int anchorId)
          断片を挿入します。
protected  int nextId()
           
protected  void putFragment(int id, jp.cssj.rsr.helpers.RandomBuilderPositionSupport.Fragment frg)
           
 void write(int id, byte[] b, int off, int len)
          データを断片に追加します。
 
クラス jp.cssj.rsr.helpers.RandomBuilderWrapper から継承したメソッド
dispose, supportsPositionInfo
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.cssj.rsr.RandomBuilder から継承したメソッド
dispose, supportsPositionInfo
 

コンストラクタの詳細

RandomBuilderPositionSupport

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

nextId

protected int nextId()

getFragment

protected jp.cssj.rsr.helpers.RandomBuilderPositionSupport.Fragment getFragment(int id)

putFragment

protected void putFragment(int id,
                           jp.cssj.rsr.helpers.RandomBuilderPositionSupport.Fragment frg)

getPositionInfo

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

定義:
インタフェース RandomBuilder 内の getPositionInfo
オーバーライド:
クラス RandomBuilderWrapper 内の getPositionInfo

addBlock

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

定義:
インタフェース RandomBuilder 内の addBlock
オーバーライド:
クラス RandomBuilderWrapper 内の addBlock
例外:
IOException

insertBlockBefore

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

定義:
インタフェース RandomBuilder 内の insertBlockBefore
オーバーライド:
クラス RandomBuilderWrapper 内の insertBlockBefore
例外:
IOException

write

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

定義:
インタフェース RandomBuilder 内の write
オーバーライド:
クラス RandomBuilderWrapper 内の write
例外:
IOException

closeBlock

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

定義:
インタフェース RandomBuilder 内の closeBlock
オーバーライド:
クラス RandomBuilderWrapper 内の closeBlock
例外:
IOException

finish

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

定義:
インタフェース RandomBuilder 内の finish
オーバーライド:
クラス RandomBuilderWrapper 内の finish
例外:
IOException


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