jp.cssj.rsr.helpers
クラス RandomBuilderMeasurer

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

public class RandomBuilderMeasurer
extends RandomBuilderWrapper

構築されるコンテンツの大きさを計測します。

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

入れ子のクラスの概要
 
インタフェース jp.cssj.rsr.RandomBuilder から継承された入れ子のクラス/インタフェース
RandomBuilder.PositionInfo
 
フィールドの概要
protected  long length
           
 
クラス jp.cssj.rsr.helpers.RandomBuilderWrapper から継承されたフィールド
builder
 
コンストラクタの概要
RandomBuilderMeasurer(RandomBuilder builder)
           
 
メソッドの概要
 void dispose()
          構築のためのリソースを破棄して初期状態に戻します。
 long getLength()
          コンテンツの大きさを返します。
 void write(int id, byte[] b, int off, int len)
          データを断片に追加します。
 
クラス jp.cssj.rsr.helpers.RandomBuilderWrapper から継承されたメソッド
addBlock, closeBlock, finish, getPositionInfo, insertBlockBefore, supportsPositionInfo
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

length

protected long length
コンストラクタの詳細

RandomBuilderMeasurer

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

dispose

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

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

write

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

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

getLength

public long getLength()
コンテンツの大きさを返します。

戻り値:
追加済みデータの合計バイト数。


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