public class BlockTable
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockTable.Block
The Class Block.
|
| Constructor and Description |
|---|
BlockTable(java.nio.MappedByteBuffer buf)
Instantiates a new block table.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<BlockTable.Block> |
getAllVaildBlocks()
Gets the all vaild blocks.
|
BlockTable.Block |
getBlockAtPos(int pos)
Gets the block at pos.
|
static void |
writeNewBlocktable(java.util.ArrayList<BlockTable.Block> blocks,
int size,
java.nio.MappedByteBuffer buf)
Write new blocktable.
|
public BlockTable(java.nio.MappedByteBuffer buf)
throws java.io.IOException
buf - the bufjava.io.IOException - Signals that an I/O exception has occurred.public static void writeNewBlocktable(java.util.ArrayList<BlockTable.Block> blocks, int size, java.nio.MappedByteBuffer buf)
blocks - the blockssize - the sizebuf - the bufpublic BlockTable.Block getBlockAtPos(int pos) throws JMpqException
pos - the posJMpqException - the j mpq exceptionpublic java.util.ArrayList<BlockTable.Block> getAllVaildBlocks() throws JMpqException
JMpqException - the j mpq exception