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 324 2009-08-02 05:51:25Z 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-2009 GNN & Co.,Ltd.