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
フィールドの概要 |
protected long |
length
|
メソッドの概要 |
void |
dispose()
構築のためのリソースを破棄して初期状態に戻します。 |
long |
getLength()
コンテンツの大きさを返します。 |
void |
write(int id,
byte[] b,
int off,
int len)
データを断片に追加します。 |
クラス 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.