Class ArchiveFileV1
java.lang.Object
org.eclipse.birt.core.archive.compound.ArchiveFileV1
- All Implemented Interfaces:
IArchiveFile
-
Constructor Summary
ConstructorsConstructorDescriptionArchiveFileV1(String archiveName) ArchiveFileV1(String archiveName, RandomAccessFile rf) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createEntry(String name) booleanvoidflush()longgetName()longlistEntries(String namePattern) protected voidread the stream table from the archive file.voidrefresh()booleanremoveEntry(String name) voidsave()voidsetCacheSize(long cacheSize) voidunlockEntry(Object locker)
-
Constructor Details
-
ArchiveFileV1
- Throws:
IOException
-
ArchiveFileV1
- Throws:
IOException
-
-
Method Details
-
readFileTable
read the stream table from the archive file. the stream table is in the begining of the file, it contains: long: stream section postiton, always zero. long: entry number. followed by entries in the archive, each entry contains: utf8: stream name. long[2]: start offset, length.- Throws:
IOException
-
getName
- Specified by:
getNamein interfaceIArchiveFile
-
getDependId
- Specified by:
getDependIdin interfaceIArchiveFile
-
getSystemId
- Specified by:
getSystemIdin interfaceIArchiveFile
-
close
- Specified by:
closein interfaceIArchiveFile- Throws:
IOException
-
setCacheSize
public void setCacheSize(long cacheSize) - Specified by:
setCacheSizein interfaceIArchiveFile
-
getUsedCache
public long getUsedCache()- Specified by:
getUsedCachein interfaceIArchiveFile
-
createEntry
- Specified by:
createEntryin interfaceIArchiveFile- Throws:
IOException
-
exists
- Specified by:
existsin interfaceIArchiveFile
-
flush
- Specified by:
flushin interfaceIArchiveFile- Throws:
IOException
-
openEntry
- Specified by:
openEntryin interfaceIArchiveFile- Throws:
IOException
-
listEntries
- Specified by:
listEntriesin interfaceIArchiveFile
-
refresh
- Specified by:
refreshin interfaceIArchiveFile- Throws:
IOException
-
removeEntry
- Specified by:
removeEntryin interfaceIArchiveFile- Throws:
IOException
-
lockEntry
- Specified by:
lockEntryin interfaceIArchiveFile- Throws:
IOException
-
unlockEntry
- Specified by:
unlockEntryin interfaceIArchiveFile- Throws:
IOException
-
getLength
public long getLength()- Specified by:
getLengthin interfaceIArchiveFile
-
save
- Specified by:
savein interfaceIArchiveFile- Throws:
IOException
-