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 324 2009-08-02 05:51:25Z 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
例外:
IOException

getLength

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

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


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