jp.cssj.rsr.impl
クラス FileRandomBuilder

java.lang.Object
  上位を拡張 jp.cssj.rsr.impl.AbstractRandomAccessFileBuilder
      上位を拡張 jp.cssj.rsr.impl.FileRandomBuilder
すべての実装されたインタフェース:
RandomBuilder, SerialSupport

public class FileRandomBuilder
extends AbstractRandomAccessFileBuilder
implements SerialSupport

ファイルに対して結果を生成します。

バージョン:
$Id: FileRandomBuilder.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  File file
           
protected  OutputStream out
           
 
クラス jp.cssj.rsr.impl.AbstractRandomAccessFileBuilder から継承されたフィールド
first, frgs, last, length, onMemory, raf, segment
 
コンストラクタの概要
FileRandomBuilder(File file)
           
FileRandomBuilder(File file, int fragmentBufferSize, int totalBufferSize, int threshold)
           
 
メソッドの概要
 void finish()
          追加済みのデータを結合して出力します。
 void write(byte[] b, int off, int len)
          データを追加します。
 
クラス jp.cssj.rsr.impl.AbstractRandomAccessFileBuilder から継承されたメソッド
addBlock, closeBlock, dispose, 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, dispose, getPositionInfo, insertBlockBefore, supportsPositionInfo, write
 

フィールドの詳細

file

protected final File file

out

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

FileRandomBuilder

public FileRandomBuilder(File file,
                         int fragmentBufferSize,
                         int totalBufferSize,
                         int threshold)

FileRandomBuilder

public FileRandomBuilder(File file)
メソッドの詳細

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


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