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 457 2010-05-20 02:26:26Z 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-2011 GNN & Co.,Ltd.