Class ArchiveView
- java.lang.Object
-
- org.eclipse.birt.core.archive.compound.ArchiveView
-
- All Implemented Interfaces:
IArchiveFile
public class ArchiveView extends java.lang.Object implements IArchiveFile
-
-
Constructor Summary
Constructors Constructor Description ArchiveView(java.lang.String viewName, java.lang.String archiveName, java.lang.String viewMode)ArchiveView(java.lang.String viewName, IArchiveFile archive, java.lang.String viewMode)ArchiveView(IArchiveFile view, IArchiveFile archive, boolean sharedArchive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidcloseEntry(org.eclipse.birt.core.archive.compound.ArchiveView.ViewEntry entry)ArchiveEntrycreateEntry(java.lang.String name)booleanexists(java.lang.String name)voidflush()IArchiveFilegetArchive()java.lang.StringgetDependId()longgetLength()java.lang.StringgetName()java.lang.StringgetSystemId()longgetUsedCache()IArchiveFilegetView()java.util.List<java.lang.String>listEntries(java.lang.String namePattern)java.lang.ObjectlockEntry(java.lang.String entry)ArchiveEntryopenEntry(java.lang.String name)protected voidopenEntry(org.eclipse.birt.core.archive.compound.ArchiveView.ViewEntry entry)voidrefresh()booleanremoveEntry(java.lang.String name)voidsave()voidsetCacheSize(long cacheSize)voidunlockEntry(java.lang.Object locker)
-
-
-
Constructor Detail
-
ArchiveView
public ArchiveView(IArchiveFile view, IArchiveFile archive, boolean sharedArchive)
-
ArchiveView
public ArchiveView(java.lang.String viewName, java.lang.String archiveName, java.lang.String viewMode) throws java.io.IOException- Throws:
java.io.IOException
-
ArchiveView
public ArchiveView(java.lang.String viewName, IArchiveFile archive, java.lang.String viewMode) 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
-
exists
public boolean exists(java.lang.String name)
- Specified by:
existsin 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
-
lockEntry
public java.lang.Object lockEntry(java.lang.String entry) 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
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfaceIArchiveFile
-
getDependId
public java.lang.String getDependId()
- Specified by:
getDependIdin interfaceIArchiveFile
-
openEntry
protected void openEntry(org.eclipse.birt.core.archive.compound.ArchiveView.ViewEntry entry)
-
closeEntry
protected void closeEntry(org.eclipse.birt.core.archive.compound.ArchiveView.ViewEntry entry)
-
createEntry
public ArchiveEntry createEntry(java.lang.String name) throws java.io.IOException
- Specified by:
createEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfaceIArchiveFile- Throws:
java.io.IOException
-
save
public void save() throws java.io.IOException- Specified by:
savein interfaceIArchiveFile- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIArchiveFile
-
getUsedCache
public long getUsedCache()
- Specified by:
getUsedCachein interfaceIArchiveFile
-
removeEntry
public boolean removeEntry(java.lang.String name) throws java.io.IOException- Specified by:
removeEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
setCacheSize
public void setCacheSize(long cacheSize)
- Specified by:
setCacheSizein interfaceIArchiveFile
-
unlockEntry
public void unlockEntry(java.lang.Object locker) throws java.io.IOException- Specified by:
unlockEntryin interfaceIArchiveFile- Throws:
java.io.IOException
-
getArchive
public IArchiveFile getArchive()
-
getView
public IArchiveFile getView()
-
getLength
public long getLength()
- Specified by:
getLengthin interfaceIArchiveFile
-
-