Class ArchiveFileV3
- java.lang.Object
-
- org.eclipse.birt.core.archive.compound.ArchiveFileV3
-
- All Implemented Interfaces:
IArchiveFile
public class ArchiveFileV3 extends java.lang.Object implements IArchiveFile
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.birt.core.archive.compound.v3.Ext2FileSystemfsprotected java.util.HashSet<ArchiveEntryV3>openedEntriesstatic java.lang.StringPROPERTY_DEPEND_IDstatic java.lang.StringPROPERTY_SYSTEM_ID
-
Constructor Summary
Constructors Constructor Description ArchiveFileV3(java.lang.String fileName, java.io.RandomAccessFile rf, java.lang.String mode)ArchiveFileV3(java.lang.String fileName, java.lang.String mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidcloseEntry(ArchiveEntryV3 entry)ArchiveEntrycreateEntry(java.lang.String name)booleanexists(java.lang.String name)voidflush()java.lang.StringgetDependId()longgetLength()java.lang.StringgetName()java.lang.StringgetSystemId()longgetUsedCache()java.util.List<java.lang.String>listEntries(java.lang.String namePattern)java.lang.ObjectlockEntry(java.lang.String name)ArchiveEntryopenEntry(java.lang.String name)protected voidopenEntry(ArchiveEntryV3 entry)voidrefresh()booleanremoveEntry(java.lang.String name)voidsave()voidsetCacheSize(long cacheSize)voidsetDependId(java.lang.String id)voidsetSystemId(java.lang.String id)voidunlockEntry(java.lang.Object locker)
-
-
-
Field Detail
-
PROPERTY_SYSTEM_ID
public static final java.lang.String PROPERTY_SYSTEM_ID
- See Also:
- Constant Field Values
-
PROPERTY_DEPEND_ID
public static final java.lang.String PROPERTY_DEPEND_ID
- See Also:
- Constant Field Values
-
fs
protected org.eclipse.birt.core.archive.compound.v3.Ext2FileSystem fs
-
openedEntries
protected java.util.HashSet<ArchiveEntryV3> openedEntries
-
-
Constructor Detail
-
ArchiveFileV3
public ArchiveFileV3(java.lang.String fileName, java.lang.String mode) throws java.io.IOException- Throws:
java.io.IOException
-
ArchiveFileV3
public ArchiveFileV3(java.lang.String fileName, java.io.RandomAccessFile rf, java.lang.String mode) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceIArchiveFile- Throws:
java.io.IOException
-
setSystemId
public void setSystemId(java.lang.String id)
-
setDependId
public void setDependId(java.lang.String id)
-
createEntry
public ArchiveEntry createEntry(java.lang.String name) throws java.io.IOException
- Specified by:
createEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
exists
public boolean exists(java.lang.String name)
- Specified by:
existsin interfaceIArchiveFile
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfaceIArchiveFile- Throws:
java.io.IOException
-
getDependId
public java.lang.String getDependId()
- Specified by:
getDependIdin interfaceIArchiveFile
-
openEntry
public ArchiveEntry openEntry(java.lang.String name) throws java.io.IOException
- Specified by:
openEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIArchiveFile
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfaceIArchiveFile
-
getUsedCache
public long getUsedCache()
- Specified by:
getUsedCachein interfaceIArchiveFile
-
listEntries
public java.util.List<java.lang.String> listEntries(java.lang.String namePattern)
- Specified by:
listEntriesin interfaceIArchiveFile
-
lockEntry
public java.lang.Object lockEntry(java.lang.String name) throws java.io.IOException- Specified by:
lockEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
refresh
public void refresh() throws java.io.IOException- Specified by:
refreshin interfaceIArchiveFile- Throws:
java.io.IOException
-
removeEntry
public boolean removeEntry(java.lang.String name) throws java.io.IOException- Specified by:
removeEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
save
public void save() throws java.io.IOException- Specified by:
savein interfaceIArchiveFile- Throws:
java.io.IOException
-
setCacheSize
public void setCacheSize(long cacheSize)
- Specified by:
setCacheSizein interfaceIArchiveFile
-
getLength
public long getLength()
- Specified by:
getLengthin interfaceIArchiveFile
-
unlockEntry
public void unlockEntry(java.lang.Object locker) throws java.io.IOException- Specified by:
unlockEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
openEntry
protected void openEntry(ArchiveEntryV3 entry)
-
closeEntry
protected void closeEntry(ArchiveEntryV3 entry)
-
-