public static class BlockTable.Block
extends java.lang.Object
| Constructor and Description |
|---|
Block(int filePos,
int compressedSize,
int normalSize,
int flags)
Instantiates a new block.
|
Block(java.nio.MappedByteBuffer buf)
Instantiates a new block.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCompressedSize()
Gets the compressed size.
|
int |
getFilePos()
Gets the file pos.
|
int |
getFlags()
Gets the flags.
|
int |
getNormalSize()
Gets the normal size.
|
void |
setCompressedSize(int compressedSize)
Sets the compressed size.
|
void |
setFilePos(int filePos)
Sets the file pos.
|
void |
setFlags(int flags)
Sets the flags.
|
void |
setNormalSize(int normalSize)
Sets the normal size.
|
java.lang.String |
toString() |
void |
writeToBuffer(java.nio.ByteBuffer bb)
Write to buffer.
|
public Block(java.nio.MappedByteBuffer buf)
throws java.io.IOException
buf - the bufjava.io.IOException - Signals that an I/O exception has occurred.public Block(int filePos,
int compressedSize,
int normalSize,
int flags)
filePos - the file poscompressedSize - the compressed sizenormalSize - the normal sizeflags - the flagspublic void writeToBuffer(java.nio.ByteBuffer bb)
bb - the bbpublic int getFilePos()
public int getCompressedSize()
public int getNormalSize()
public int getFlags()
public void setFilePos(int filePos)
filePos - the new file pospublic void setCompressedSize(int compressedSize)
compressedSize - the new compressed sizepublic void setNormalSize(int normalSize)
normalSize - the new normal sizepublic void setFlags(int flags)
flags - the new flagspublic java.lang.String toString()
toString in class java.lang.Object