Class ArchiveFileV2

java.lang.Object
org.eclipse.birt.core.archive.compound.ArchiveFileV2
All Implemented Interfaces:
IArchiveFile

public class ArchiveFileV2 extends Object implements IArchiveFile
the archive file contains following mode:
  • "r" open the file for read only.
  • "rw" create the file for read/write
  • "rw+" open file is open for read/write
  • "rwt" create the transient file, it will be removed after closing.
    • Field Details

      • rf

        protected RandomAccessFile rf
        the physical file correspond to this compound file system
      • isClosed

        protected boolean isClosed
        if the file is closed.
      • isWritable

        protected boolean isWritable
        the archive file is writable.
      • isTransient

        protected boolean isTransient
        the archive file is transient.
      • isAppend

        protected boolean isAppend
        the archive file is appended.
      • archiveName

        protected String archiveName
        the archive file name.
      • systemId

        protected String systemId
      • dependId

        protected String dependId
      • BLOCK_SIZE

        protected int BLOCK_SIZE
      • allocTbl

        protected org.eclipse.birt.core.archive.compound.AllocTable allocTbl
        allocation table of the archive file
      • entryTbl

        protected org.eclipse.birt.core.archive.compound.NameTable entryTbl
        entry table of the archive file
      • entries

        protected HashMap<String,org.eclipse.birt.core.archive.compound.NameEntry> entries
        archive entries in the table
      • caches

        protected org.eclipse.birt.core.archive.cache.FileCacheManager caches
        cache manager of the archive file.
      • totalBlocks

        protected int totalBlocks
        the total blocks exits in this file
      • totalDiskBlocks

        protected int totalDiskBlocks
        the total blocks exits in the disk
      • DOCUMENT_TAG

        static final long DOCUMENT_TAG
        The magic tag of the archive file: "RPTDOC"
        See Also:
      • DOCUMENT_VERSION_0

        static final long DOCUMENT_VERSION_0
        After 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

        static final String 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_SIZE
        Size of a physical block, counted in bytes.
        See Also:
      • HEADER_BLOCK

        static final int HEADER_BLOCK
        the block of archive header
        See Also:
      • ALLOC_TABLE_BLOCK

        static final int ALLOC_TABLE_BLOCK
        the first block of allocation table
        See Also:
      • ENTRY_TABLE_BLOCK

        static final int ENTRY_TABLE_BLOCK
        the first block of entry table
        See Also:
      • ENTRY_ITEM_SIZE

        static final int ENTRY_ITEM_SIZE
        the size of a entry in the entry table, counted in bytes
        See Also:
      • FILE_STATUS_FINISHED

        static final int FILE_STATUS_FINISHED
        File status value: finished
        See Also:
      • DEFAULT_BUFFER_POOL_SIZE

        static final int DEFAULT_BUFFER_POOL_SIZE
        default size of buffer pool - number of buffer blocks in buffer pool
        See Also:
      • MIN_BUFFER_POOL_SIZE

        static final int MIN_BUFFER_POOL_SIZE
        Min size of buffer pool - number of buffer blocks in buffer pool
        See Also:
    • Constructor Details

    • Method Details