|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.cssj.rsr.impl.AbstractRandomAccessFileBuilder
public abstract class AbstractRandomAccessFileBuilder
ファイルシステムを使って結果を生成します。
入れ子のクラスの概要 | |
---|---|
protected class |
AbstractRandomAccessFileBuilder.Block
|
インタフェース jp.cssj.rsr.RandomBuilder から継承された入れ子のクラス/インタフェース |
---|
RandomBuilder.PositionInfo |
フィールドの概要 | |
---|---|
protected File |
file
|
protected AbstractRandomAccessFileBuilder.Block |
first
|
protected List |
frgs
|
protected AbstractRandomAccessFileBuilder.Block |
last
|
protected long |
length
|
protected long |
onMemory
|
protected RandomAccessFile |
raf
|
protected int |
segment
|
コンストラクタの概要 | |
---|---|
AbstractRandomAccessFileBuilder()
|
|
AbstractRandomAccessFileBuilder(int fragmentBufferSize,
int totalBufferSize,
int threshold)
|
メソッドの概要 | |
---|---|
void |
addBlock()
断片を追加します。 |
void |
closeBlock(int id)
断片への書き込みを終了します。 |
void |
dispose()
構築のためのリソースを破棄して初期状態に戻します。 |
protected void |
finalize()
|
protected void |
finish(OutputStream out)
|
protected AbstractRandomAccessFileBuilder.Block |
getBlock(int id)
|
long |
getLength()
|
RandomBuilder.PositionInfo |
getPositionInfo()
現在の断片の位置情報を返します(任意のオペレーション)。 |
void |
insertBlockBefore(int anchorId)
断片を挿入します。 |
protected int |
nextId()
|
protected void |
putBlock(int id,
AbstractRandomAccessFileBuilder.Block frg)
|
boolean |
supportsPositionInfo()
位置情報をサポートしているかどうかを返します。 |
void |
write(int id,
byte[] b,
int off,
int len)
データを断片に追加します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース jp.cssj.rsr.RandomBuilder から継承されたメソッド |
---|
finish |
フィールドの詳細 |
---|
protected RandomAccessFile raf
protected File file
protected List frgs
protected AbstractRandomAccessFileBuilder.Block first
protected AbstractRandomAccessFileBuilder.Block last
protected long length
protected long onMemory
protected int segment
コンストラクタの詳細 |
---|
public AbstractRandomAccessFileBuilder(int fragmentBufferSize, int totalBufferSize, int threshold)
public AbstractRandomAccessFileBuilder()
メソッドの詳細 |
---|
protected int nextId() throws IOException
IOException
protected AbstractRandomAccessFileBuilder.Block getBlock(int id) throws IOException
IOException
protected void putBlock(int id, AbstractRandomAccessFileBuilder.Block frg)
public RandomBuilder.PositionInfo getPositionInfo()
RandomBuilder
の記述:
RandomBuilder
内の getPositionInfo
public boolean supportsPositionInfo()
RandomBuilder
の記述:
RandomBuilder
内の supportsPositionInfo
public void addBlock() throws IOException
RandomBuilder
の記述:
RandomBuilder
内の addBlock
IOException
public void insertBlockBefore(int anchorId) throws IOException
RandomBuilder
の記述:
RandomBuilder
内の insertBlockBefore
anchorId
- 断片のID。
IOException
public void write(int id, byte[] b, int off, int len) throws IOException
RandomBuilder
の記述:
RandomBuilder
内の write
id
- 断片のID。b
- バイト列。off
- バイト列中のデータの開始位置。len
- バイト列中のデータの長さ。
IOException
public void closeBlock(int id) throws IOException
RandomBuilder
の記述:
RandomBuilder
内の closeBlock
id
- 断片のID。
IOException
protected void finish(OutputStream out) throws IOException
IOException
public long getLength()
public void dispose()
RandomBuilder
の記述:
RandomBuilder
内の dispose
protected void finalize() throws IOException
Object
内の finalize
IOException
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |