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 TypeMethodDescriptionvoid
close()
createEntry
(String name) boolean
void
flush()
long
getName()
long
listEntries
(String namePattern) protected void
read the stream table from the archive file.void
refresh()
boolean
removeEntry
(String name) void
save()
void
setCacheSize
(long cacheSize) void
unlockEntry
(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:
getName
in interfaceIArchiveFile
-
getDependId
- Specified by:
getDependId
in interfaceIArchiveFile
-
getSystemId
- Specified by:
getSystemId
in interfaceIArchiveFile
-
close
- Specified by:
close
in interfaceIArchiveFile
- Throws:
IOException
-
setCacheSize
public void setCacheSize(long cacheSize) - Specified by:
setCacheSize
in interfaceIArchiveFile
-
getUsedCache
public long getUsedCache()- Specified by:
getUsedCache
in interfaceIArchiveFile
-
createEntry
- Specified by:
createEntry
in interfaceIArchiveFile
- Throws:
IOException
-
exists
- Specified by:
exists
in interfaceIArchiveFile
-
flush
- Specified by:
flush
in interfaceIArchiveFile
- Throws:
IOException
-
openEntry
- Specified by:
openEntry
in interfaceIArchiveFile
- Throws:
IOException
-
listEntries
- Specified by:
listEntries
in interfaceIArchiveFile
-
refresh
- Specified by:
refresh
in interfaceIArchiveFile
- Throws:
IOException
-
removeEntry
- Specified by:
removeEntry
in interfaceIArchiveFile
- Throws:
IOException
-
lockEntry
- Specified by:
lockEntry
in interfaceIArchiveFile
- Throws:
IOException
-
unlockEntry
- Specified by:
unlockEntry
in interfaceIArchiveFile
- Throws:
IOException
-
getLength
public long getLength()- Specified by:
getLength
in interfaceIArchiveFile
-
save
- Specified by:
save
in interfaceIArchiveFile
- Throws:
IOException
-