jp.cssj.rsr.impl
クラス StreamRandomBuilder

java.lang.Object
  拡張jp.cssj.rsr.impl.AbstractRandomAccessFileBuilder
      拡張jp.cssj.rsr.impl.StreamRandomBuilder
すべての実装インタフェース:
RandomBuilder, SerialSupport

public class StreamRandomBuilder
extends AbstractRandomAccessFileBuilder
implements SerialSupport

ストリームに対して結果を生成します。

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

入れ子クラスの概要
 
クラス jp.cssj.rsr.impl.AbstractRandomAccessFileBuilder から継承した入れ子クラス
AbstractRandomAccessFileBuilder.Block
 
クラス jp.cssj.rsr.RandomBuilder から継承した入れ子クラス
RandomBuilder.PositionInfo
 
フィールドの概要
protected  OutputStream out
           
 
クラス jp.cssj.rsr.impl.AbstractRandomAccessFileBuilder から継承したフィールド
file, first, frgs, last, length, onMemory, raf, segment
 
コンストラクタの概要
StreamRandomBuilder(OutputStream out)
           
StreamRandomBuilder(OutputStream out, int fragmentBufferSize, int totalBufferSize, int threshold)
           
 
メソッドの概要
 void dispose()
          構築のためのリソースを破棄して初期状態に戻します。
 void finish()
          追加済みのデータを結合して出力します。
 void write(byte[] b, int off, int len)
          データを追加します。
 
クラス jp.cssj.rsr.impl.AbstractRandomAccessFileBuilder から継承したメソッド
addBlock, closeBlock, finalize, finish, getBlock, getLength, getPositionInfo, insertBlockBefore, nextId, putBlock, supportsPositionInfo, write
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.cssj.rsr.RandomBuilder から継承したメソッド
addBlock, closeBlock, getPositionInfo, insertBlockBefore, supportsPositionInfo, write
 

フィールドの詳細

out

protected final OutputStream out
コンストラクタの詳細

StreamRandomBuilder

public StreamRandomBuilder(OutputStream out,
                           int fragmentBufferSize,
                           int totalBufferSize,
                           int threshold)

StreamRandomBuilder

public StreamRandomBuilder(OutputStream out)
メソッドの詳細

write

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

定義:
インタフェース SerialSupport 内の write
パラメータ:
b - バイト列。
off - バイト列中の開始位置。
len - バイト列中のデータの長さ。
例外:
IOException

finish

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

定義:
インタフェース RandomBuilder 内の finish
例外:
IOException

dispose

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

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


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