org.siebengeisslein.core
Class FreeBlockList
java.lang.Object
org.siebengeisslein.core.TwoFile
org.siebengeisslein.core.FreeBlockList
public class FreeBlockList
- extends TwoFile
|
Field Summary |
static java.lang.String |
EXT
|
static java.lang.String |
EXT2
|
|
Constructor Summary |
FreeBlockList(java.lang.String name,
boolean create)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXT
public static final java.lang.String EXT
- See Also:
- Constant Field Values
EXT2
public static final java.lang.String EXT2
- See Also:
- Constant Field Values
FreeBlockList
public FreeBlockList(java.lang.String name,
boolean create)
throws java.io.IOException
- Throws:
java.io.IOException
init
protected void init()
- Specified by:
init in class TwoFile
recovered
public void recovered()
read
protected void read(java.io.RandomAccessFile raf)
throws java.io.IOException
- Specified by:
read in class TwoFile
- Throws:
java.io.IOException
write
protected void write(java.io.RandomAccessFile raf)
throws java.io.IOException
- Specified by:
write in class TwoFile
- Throws:
java.io.IOException
addBlock
public void addBlock(long block)
throws java.io.IOException
- Throws:
java.io.IOException
removeBlock
public void removeBlock(long block)
throws java.io.IOException
- Throws:
java.io.IOException
reserveBlock
public long reserveBlock()
throws java.io.IOException
- Throws:
java.io.IOException
contains
public boolean contains(long value)