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.Ext2FileSystem
fs
protected java.util.HashSet<ArchiveEntryV3>
openedEntries
static java.lang.String
PROPERTY_DEPEND_ID
static java.lang.String
PROPERTY_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 void
close()
protected void
closeEntry(ArchiveEntryV3 entry)
ArchiveEntry
createEntry(java.lang.String name)
boolean
exists(java.lang.String name)
void
flush()
java.lang.String
getDependId()
long
getLength()
java.lang.String
getName()
java.lang.String
getSystemId()
long
getUsedCache()
java.util.List<java.lang.String>
listEntries(java.lang.String namePattern)
java.lang.Object
lockEntry(java.lang.String name)
ArchiveEntry
openEntry(java.lang.String name)
protected void
openEntry(ArchiveEntryV3 entry)
void
refresh()
boolean
removeEntry(java.lang.String name)
void
save()
void
setCacheSize(long cacheSize)
void
setDependId(java.lang.String id)
void
setSystemId(java.lang.String id)
void
unlockEntry(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:
close
in 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:
createEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
exists
public boolean exists(java.lang.String name)
- Specified by:
exists
in interfaceIArchiveFile
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
getDependId
public java.lang.String getDependId()
- Specified by:
getDependId
in interfaceIArchiveFile
-
openEntry
public ArchiveEntry openEntry(java.lang.String name) throws java.io.IOException
- Specified by:
openEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIArchiveFile
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemId
in interfaceIArchiveFile
-
getUsedCache
public long getUsedCache()
- Specified by:
getUsedCache
in interfaceIArchiveFile
-
listEntries
public java.util.List<java.lang.String> listEntries(java.lang.String namePattern)
- Specified by:
listEntries
in interfaceIArchiveFile
-
lockEntry
public java.lang.Object lockEntry(java.lang.String name) throws java.io.IOException
- Specified by:
lockEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
refresh
public void refresh() throws java.io.IOException
- Specified by:
refresh
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
removeEntry
public boolean removeEntry(java.lang.String name) throws java.io.IOException
- Specified by:
removeEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
save
public void save() throws java.io.IOException
- Specified by:
save
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
setCacheSize
public void setCacheSize(long cacheSize)
- Specified by:
setCacheSize
in interfaceIArchiveFile
-
getLength
public long getLength()
- Specified by:
getLength
in interfaceIArchiveFile
-
unlockEntry
public void unlockEntry(java.lang.Object locker) throws java.io.IOException
- Specified by:
unlockEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
openEntry
protected void openEntry(ArchiveEntryV3 entry)
-
closeEntry
protected void closeEntry(ArchiveEntryV3 entry)
-
-