Package org.eclipse.birt.core.archive
Class FolderArchiveFile
- java.lang.Object
-
- org.eclipse.birt.core.archive.FolderArchiveFile
-
- All Implemented Interfaces:
IArchiveFile
public class FolderArchiveFile extends java.lang.Object implements IArchiveFile
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdependIdprotected java.lang.StringfolderNameprotected java.util.Map<java.lang.String,java.lang.String>propertiesprotected java.lang.StringsystemId
-
Constructor Summary
Constructors Constructor Description FolderArchiveFile(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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 entry)ArchiveEntryopenEntry(java.lang.String name)voidrefresh()booleanremoveEntry(java.lang.String name)voidsave()voidsetCacheSize(long cacheSize)voidsetDependId(java.lang.String dependId)voidsetSystemId(java.lang.String systemId)voidunlockEntry(java.lang.Object locker)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIArchiveFile
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceIArchiveFile- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfaceIArchiveFile- Throws:
java.io.IOException
-
refresh
public void refresh() throws java.io.IOException- Specified by:
refreshin interfaceIArchiveFile- Throws:
java.io.IOException
-
exists
public boolean exists(java.lang.String name)
- Specified by:
existsin interfaceIArchiveFile
-
setCacheSize
public void setCacheSize(long cacheSize)
- Specified by:
setCacheSizein interfaceIArchiveFile
-
getUsedCache
public long getUsedCache()
- Specified by:
getUsedCachein interfaceIArchiveFile
-
openEntry
public ArchiveEntry openEntry(java.lang.String name) throws java.io.IOException
- Specified by:
openEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
listEntries
public java.util.List<java.lang.String> listEntries(java.lang.String namePattern)
- Specified by:
listEntriesin interfaceIArchiveFile
-
createEntry
public ArchiveEntry createEntry(java.lang.String name) throws java.io.IOException
- Specified by:
createEntryin 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
-
lockEntry
public java.lang.Object lockEntry(java.lang.String entry) throws java.io.IOException- Specified by:
lockEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
unlockEntry
public void unlockEntry(java.lang.Object locker) throws java.io.IOException- Specified by:
unlockEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfaceIArchiveFile
-
getDependId
public java.lang.String getDependId()
- Specified by:
getDependIdin interfaceIArchiveFile
-
setSystemId
public void setSystemId(java.lang.String systemId)
-
setDependId
public void setDependId(java.lang.String dependId)
-
save
public void save() throws java.io.IOException- Specified by:
savein interfaceIArchiveFile- Throws:
java.io.IOException
-
getLength
public long getLength()
- Specified by:
getLengthin interfaceIArchiveFile
-
-