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.String
dependId
protected java.lang.String
folderName
protected java.util.Map<java.lang.String,java.lang.String>
properties
protected java.lang.String
systemId
-
Constructor Summary
Constructors Constructor Description FolderArchiveFile(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
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 entry)
ArchiveEntry
openEntry(java.lang.String name)
void
refresh()
boolean
removeEntry(java.lang.String name)
void
save()
void
setCacheSize(long cacheSize)
void
setDependId(java.lang.String dependId)
void
setSystemId(java.lang.String systemId)
void
unlockEntry(java.lang.Object locker)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIArchiveFile
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
refresh
public void refresh() throws java.io.IOException
- Specified by:
refresh
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
exists
public boolean exists(java.lang.String name)
- Specified by:
exists
in interfaceIArchiveFile
-
setCacheSize
public void setCacheSize(long cacheSize)
- Specified by:
setCacheSize
in interfaceIArchiveFile
-
getUsedCache
public long getUsedCache()
- Specified by:
getUsedCache
in interfaceIArchiveFile
-
openEntry
public ArchiveEntry openEntry(java.lang.String name) throws java.io.IOException
- Specified by:
openEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
listEntries
public java.util.List<java.lang.String> listEntries(java.lang.String namePattern)
- Specified by:
listEntries
in interfaceIArchiveFile
-
createEntry
public ArchiveEntry createEntry(java.lang.String name) throws java.io.IOException
- Specified by:
createEntry
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
-
lockEntry
public java.lang.Object lockEntry(java.lang.String entry) throws java.io.IOException
- Specified by:
lockEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
unlockEntry
public void unlockEntry(java.lang.Object locker) throws java.io.IOException
- Specified by:
unlockEntry
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemId
in interfaceIArchiveFile
-
getDependId
public java.lang.String getDependId()
- Specified by:
getDependId
in 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:
save
in interfaceIArchiveFile
- Throws:
java.io.IOException
-
getLength
public long getLength()
- Specified by:
getLength
in interfaceIArchiveFile
-
-