public class StreamRandomBuilder extends AbstractRandomAccessFileBuilder implements Sequential
AbstractRandomAccessFileBuilder.BlockRandomBuilder.PositionInfo| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected OutputStream |
out |
| コンストラクタと説明 |
|---|
StreamRandomBuilder(OutputStream out) |
StreamRandomBuilder(OutputStream out,
int fragmentBufferSize,
int totalBufferSize,
int threshold) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
dispose()
構築のためのリソースを破棄します。
|
void |
finish()
データの構築を完了します。
|
void |
write(byte[] b,
int off,
int len)
データを追加します。
|
addBlock, closeBlock, finalize, finish, getBlock, getLength, getPositionInfo, insertBlockBefore, nextId, putBlock, supportsPositionInfo, writeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBlock, closeBlock, getPositionInfo, insertBlockBefore, supportsPositionInfo, writeprotected final OutputStream out
public StreamRandomBuilder(OutputStream out, int fragmentBufferSize, int totalBufferSize, int threshold)
public StreamRandomBuilder(OutputStream out)
public void write(byte[] b,
int off,
int len)
throws IOException
Sequentialwrite インタフェース内 Sequentialb - バイト列。off - バイト列中の開始位置。len - バイト列中のデータの長さ。IOExceptionpublic void finish()
throws IOException
RandomBuilderfinish インタフェース内 RandomBuilderIOExceptionpublic void dispose()
RandomBuilder構築のためのリソースを破棄します。
RandomBuilder は処理のために一時ファイルなどのリソースを使用するため、 不要となったオブジェクトに対しては必ずdispose()を呼び出してください。
dispose インタフェース内 RandomBuilderdispose クラス内 AbstractRandomAccessFileBuilderCopyright © 2024 座間ソフト. All rights reserved.