public class FileRandomBuilder extends AbstractRandomAccessFileBuilder implements Sequential
AbstractRandomAccessFileBuilder.Block
RandomBuilder.PositionInfo
Modifier and Type | Field and Description |
---|---|
protected File |
file |
protected OutputStream |
out |
Constructor and Description |
---|
FileRandomBuilder(File file) |
FileRandomBuilder(File file,
int fragmentBufferSize,
int totalBufferSize,
int threshold) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
データの構築を完了します。
|
void |
write(byte[] b,
int off,
int len)
データを追加します。
|
addBlock, closeBlock, dispose, finalize, finish, getBlock, getLength, getPositionInfo, insertBlockBefore, nextId, putBlock, supportsPositionInfo, write
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBlock, closeBlock, dispose, getPositionInfo, insertBlockBefore, supportsPositionInfo, write
protected final File file
protected OutputStream out
public FileRandomBuilder(File file, int fragmentBufferSize, int totalBufferSize, int threshold)
public FileRandomBuilder(File file)
public void write(byte[] b, int off, int len) throws IOException
Sequential
write
in interface Sequential
b
- バイト列。off
- バイト列中の開始位置。len
- バイト列中のデータの長さ。IOException
public void finish() throws IOException
RandomBuilder
finish
in interface RandomBuilder
IOException
Copyright © 2018 座間ソフト. All rights reserved.