Class Block
java.lang.Object
org.eclipse.birt.core.archive.cache.Cacheable
org.eclipse.birt.core.archive.compound.Block
public class Block
extends org.eclipse.birt.core.archive.cache.Cacheable
A physical block in a physical compound file, might be stream items block,
index block or stream data block.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
the first block of allocation tablestatic final int
Size of a physical block, counted in bytes.static final int
default size of buffer pool - number of buffer blocks in buffer poolstatic final long
The magic tag of the archive file: "RPTDOC"static final long
After support system id in archive file, DOCUMENT_VERSION_1 is writen into header.static final long
static final int
the size of a entry in the entry table, counted in bytesstatic final int
the first block of entry tablestatic final int
File status value: finishedstatic final int
the block of archive headerstatic final int
Min size of buffer pool - number of buffer blocks in buffer poolstatic final String
the system property defines the block size, it should be times of 1024.Fields inherited from class org.eclipse.birt.core.archive.cache.Cacheable
cacheKey, manager, next, prev, referenceCount
-
Method Summary
Methods inherited from class org.eclipse.birt.core.archive.cache.Cacheable
getCacheKey, getNext, getPrev, getReferenceCount, setNext, setPrev
-
Field Details
-
DOCUMENT_TAG
static final long DOCUMENT_TAGThe magic tag of the archive file: "RPTDOC"- See Also:
-
DOCUMENT_VERSION_0
static final long DOCUMENT_VERSION_0After support system id in archive file, DOCUMENT_VERSION_1 is writen into header.- See Also:
-
DOCUMENT_VERSION_1
static final long DOCUMENT_VERSION_1- See Also:
-
PROPERTY_DEFAULT_BLOCK_SIZE
the system property defines the block size, it should be times of 1024.- See Also:
-
DEFAULT_BLOCK_SIZE
static final int DEFAULT_BLOCK_SIZESize of a physical block, counted in bytes.- See Also:
-
HEADER_BLOCK
static final int HEADER_BLOCKthe block of archive header- See Also:
-
ALLOC_TABLE_BLOCK
static final int ALLOC_TABLE_BLOCKthe first block of allocation table- See Also:
-
ENTRY_TABLE_BLOCK
static final int ENTRY_TABLE_BLOCKthe first block of entry table- See Also:
-
ENTRY_ITEM_SIZE
static final int ENTRY_ITEM_SIZEthe size of a entry in the entry table, counted in bytes- See Also:
-
FILE_STATUS_FINISHED
static final int FILE_STATUS_FINISHEDFile status value: finished- See Also:
-
DEFAULT_BUFFER_POOL_SIZE
static final int DEFAULT_BUFFER_POOL_SIZEdefault size of buffer pool - number of buffer blocks in buffer pool- See Also:
-
MIN_BUFFER_POOL_SIZE
static final int MIN_BUFFER_POOL_SIZEMin size of buffer pool - number of buffer blocks in buffer pool- See Also:
-
-
Method Details
-
refresh
- Throws:
IOException
-
flush
- Throws:
IOException
-
getData
public byte[] getData() -
write
- Throws:
IOException
-
read
- Throws:
IOException
-