public class ArchiveFileFactory extends java.lang.Object implements IArchiveFileFactory
| 构造器和说明 |
|---|
ArchiveFileFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
IArchiveFile |
createArchive(java.lang.String archiveId)
Create an archive file.
|
IArchiveFile |
createTransientArchive(java.lang.String archiveId)
Create an archive in transient mode.
|
IArchiveFile |
createTransientView(java.lang.String viewId,
IArchiveFile archive)
Create a transient view.
|
IArchiveFile |
createView(java.lang.String viewId,
IArchiveFile archive)
Create a view, the view uses "viewId" as the identifier and saved into
file "filename".
|
protected java.lang.String |
getPhysicalFile(java.lang.String systemId)
The sub class should override this method to implement its own systemId
resolver.
|
IArchiveFile |
openArchive(java.lang.String archiveId,
java.lang.String mode)
Open the archive or view.
|
IArchiveFile |
openView(java.lang.String viewId,
java.lang.String mode,
IArchiveFile archive)
Open the view with viewId in
mode mode, the depend archive
file is opened in r mode, and is shared. |
public IArchiveFile createArchive(java.lang.String archiveId) throws java.io.IOException
IArchiveFileFactoryarchiveId as the
identifier. If the file has exist already, the file is removed first. It can only
be used to create an archive. To create a view, the user needs use
createView.createArchive 在接口中 IArchiveFileFactoryarchiveId - the system id of the new archive filearchiveIdjava.io.IOExceptionpublic IArchiveFile createTransientArchive(java.lang.String archiveId) throws java.io.IOException
IArchiveFileFactorycreateTransientArchive 在接口中 IArchiveFileFactoryjava.io.IOExceptionpublic IArchiveFile createView(java.lang.String viewId, IArchiveFile archive) throws java.io.IOException
IArchiveFileFactorycreateView 在接口中 IArchiveFileFactoryviewId - the system id of the new view filearchive - the depended archive file instancejava.io.IOExceptionpublic IArchiveFile createTransientView(java.lang.String viewId, IArchiveFile archive) throws java.io.IOException
IArchiveFileFactorycreateTransientView 在接口中 IArchiveFileFactoryviewId - the system id of the new view filearchive - the depended archive file instancejava.io.IOExceptionpublic IArchiveFile openArchive(java.lang.String archiveId, java.lang.String mode) throws java.io.IOException
IArchiveFileFactoryopenArchive 在接口中 IArchiveFileFactoryarchiveId - the system id of the opening archivemode - opening modejava.io.IOExceptionpublic IArchiveFile openView(java.lang.String viewId, java.lang.String mode, IArchiveFile archive) throws java.io.IOException
IArchiveFileFactorymode mode, the depend archive
file is opened in r mode, and is shared. The mode can be either:
- "r" the view file is opened for read only.
- "rw" the view file is opened for read and write.
- "rw+" the view file is opened for read and append.
The depend archive file will not be closed when view file is closed.openView 在接口中 IArchiveFileFactoryviewId - the system id of the opening viewmode - opening modearchive - depend archive filejava.io.IOExceptionprotected java.lang.String getPhysicalFile(java.lang.String systemId)
systemId - Copyright © 2008 Actuate Corp. All rights reserved.