|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.core.archive.compound.ArchiveFile
public class ArchiveFile
change the default format to ext2.
| Field Summary | |
|---|---|
protected IArchiveFile |
af
|
protected java.lang.String |
archiveName
the archive file name. |
static boolean |
enableFileCache
|
static boolean |
enableSystemCache
|
static int |
FILE_CACHE_SIZE
|
static org.eclipse.birt.core.archive.cache.SystemCacheManager |
systemCacheManager
|
protected java.lang.String |
systemId
|
| Constructor Summary | |
|---|---|
ArchiveFile(java.lang.String fileName,
java.lang.String mode)
|
|
ArchiveFile(java.lang.String systemId,
java.lang.String fileName,
java.lang.String mode)
|
|
| Method Summary | |
|---|---|
void |
close()
close the archive. |
ArchiveEntry |
createEntry(java.lang.String name)
|
boolean |
exists(java.lang.String name)
|
void |
flush()
|
java.lang.String |
getDependId()
|
java.lang.String |
getName()
get the archive name. |
java.lang.String |
getSystemId()
|
static long |
getTotalUsedCache()
|
long |
getUsedCache()
|
java.util.List |
listEntries(java.lang.String namePattern)
|
java.lang.Object |
lockEntry(java.lang.String name)
|
protected void |
openArchiveForAppending()
|
protected void |
openArchiveForReading()
|
ArchiveEntry |
openEntry(java.lang.String name)
|
void |
refresh()
|
boolean |
removeEntry(java.lang.String name)
|
void |
save()
save the file. |
void |
saveAs(java.lang.String fileName)
save the |
void |
setCacheSize(long cacheSize)
|
static void |
setTotalCacheSize(long size)
|
void |
unlockEntry(java.lang.Object locker)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean enableSystemCache
public static final org.eclipse.birt.core.archive.cache.SystemCacheManager systemCacheManager
public static final boolean enableFileCache
public static final int FILE_CACHE_SIZE
protected java.lang.String archiveName
protected java.lang.String systemId
protected IArchiveFile af
| Constructor Detail |
|---|
public ArchiveFile(java.lang.String fileName,
java.lang.String mode)
throws java.io.IOException
java.io.IOException
public ArchiveFile(java.lang.String systemId,
java.lang.String fileName,
java.lang.String mode)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected void openArchiveForReading()
throws java.io.IOException
java.io.IOException
protected void openArchiveForAppending()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
getName in interface IArchiveFilepublic java.lang.String getDependId()
getDependId in interface IArchiveFilepublic java.lang.String getSystemId()
getSystemId in interface IArchiveFile
public void close()
throws java.io.IOException
close in interface IArchiveFilejava.io.IOExceptionpublic void setCacheSize(long cacheSize)
setCacheSize in interface IArchiveFilepublic long getUsedCache()
getUsedCache in interface IArchiveFilepublic static long getTotalUsedCache()
public static void setTotalCacheSize(long size)
public void saveAs(java.lang.String fileName)
throws java.io.IOException
fileName -
java.io.IOException
public void save()
throws java.io.IOException
save in interface IArchiveFilejava.io.IOException
public void flush()
throws java.io.IOException
flush in interface IArchiveFilejava.io.IOException
public void refresh()
throws java.io.IOException
refresh in interface IArchiveFilejava.io.IOExceptionpublic boolean exists(java.lang.String name)
exists in interface IArchiveFile
public ArchiveEntry openEntry(java.lang.String name)
throws java.io.IOException
openEntry in interface IArchiveFilejava.io.IOExceptionpublic java.util.List listEntries(java.lang.String namePattern)
listEntries in interface IArchiveFile
public ArchiveEntry createEntry(java.lang.String name)
throws java.io.IOException
createEntry in interface IArchiveFilejava.io.IOException
public boolean removeEntry(java.lang.String name)
throws java.io.IOException
removeEntry in interface IArchiveFilejava.io.IOException
public java.lang.Object lockEntry(java.lang.String name)
throws java.io.IOException
lockEntry in interface IArchiveFilejava.io.IOException
public void unlockEntry(java.lang.Object locker)
throws java.io.IOException
unlockEntry in interface IArchiveFilejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||