jp.cssj.rsr.impl
クラス NOPRandomBuilder

java.lang.Object
  上位を拡張 jp.cssj.rsr.impl.NOPRandomBuilder
すべての実装されたインタフェース:
RandomBuilder

public class NOPRandomBuilder
extends Object
implements RandomBuilder

何も生成しないRandomBuilderです。

バージョン:
$Id: NOPRandomBuilder.java 457 2010-05-20 02:26:26Z miyabe $
作成者:
MIYABE Tatsuhiko

入れ子のクラスの概要
 
インタフェース jp.cssj.rsr.RandomBuilder から継承された入れ子のクラス/インタフェース
RandomBuilder.PositionInfo
 
フィールドの概要
static NOPRandomBuilder SHARED_INSTANCE
           
 
メソッドの概要
 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
 

フィールドの詳細

SHARED_INSTANCE

public static final NOPRandomBuilder SHARED_INSTANCE
メソッドの詳細

getPositionInfo

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

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

supportsPositionInfo

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

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

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


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