|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.impl.AbstractFileSystemBuilder<T>
org.entityfs.impl.impl.AbstractFileSystemBuilderImpl<ZipFileSystemBuilder>
org.entityfs.zip.ZipFileSystemBuilder
public class ZipFileSystemBuilder
This is a builder class for building read only Zip file-backed file systems.
A limitation of the Zip file system is that it must be built upon a Zip file
in a file-backed file system. This is because Java's ZipFile class
only can be built from a File object.
The Zip file system must be closed when it is not needed anymore. If a file entity is used for the zip file, it is locked for reading by the Zip file system. The lock is released when the file system is closed.
| Field Summary |
|---|
| Fields inherited from interface org.entityfs.FileSystemBuilder |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
ZipFileSystemBuilder()
Create a builder with default settings: LogAdapter: DefaultLogAdapter.DEFAULT_ADAPTER
EntityValidityControlStrategy: null (no one else
should have write access to the backend)
|
|
| Method Summary | |
|---|---|
protected AdapterFactory |
createAdapterFactory()
|
protected FileSystemImplementation |
createFileSystem(SupportObjects fso,
FileSystemDelegate fsd)
|
protected FileSystemDelegate |
createFileSystemDelegate(FileSystemAdapter fsa)
|
boolean |
isLockingSupported()
Does the file system being built support locking? |
protected boolean |
isReadOnly()
|
ZipFileSystemBuilder |
setZipFile(EFile f)
Set the Zip file. |
ZipFileSystemBuilder |
setZipFile(File f)
Set the Zip file. |
ZipFileSystemBuilder |
setZipFile(ZipFile f)
Set the Zip file. |
protected Collection<String> |
validate()
|
| Methods inherited from class org.entityfs.impl.impl.AbstractFileSystemBuilderImpl |
|---|
create, createDefaultChildEntityManagerFactory, enableEvents, getChildEntityManagerFactory, getEventManager, isFileSystemSupportedByAllCapabilities, setChildEntityManagerFactory, setEventManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZipFileSystemBuilder()
LogAdapter: DefaultLogAdapter.DEFAULT_ADAPTEREntityValidityControlStrategy: null (no one else
should have write access to the backend)
| Method Detail |
|---|
public ZipFileSystemBuilder setZipFile(File f)
f - The Zip file.
this.
public ZipFileSystemBuilder setZipFile(EFile f)
throws IllegalArgumentException
f - The Zip file.
this.
IllegalArgumentException - If the file is not in a file-backed file
system.public ZipFileSystemBuilder setZipFile(ZipFile f)
f - The Zip file.
this.public boolean isLockingSupported()
FileSystemBuilder
false.FileSystemBuilder.enableLocking()protected Collection<String> validate()
validate in class AbstractFileSystemBuilder<ZipFileSystemBuilder>protected boolean isReadOnly()
isReadOnly in class AbstractFileSystemBuilderImpl<ZipFileSystemBuilder>true, always.protected AdapterFactory createAdapterFactory()
createAdapterFactory in class AbstractFileSystemBuilderImpl<ZipFileSystemBuilder>protected FileSystemDelegate createFileSystemDelegate(FileSystemAdapter fsa)
createFileSystemDelegate in class AbstractFileSystemBuilderImpl<ZipFileSystemBuilder>
protected FileSystemImplementation createFileSystem(SupportObjects fso,
FileSystemDelegate fsd)
createFileSystem in class AbstractFileSystemBuilderImpl<ZipFileSystemBuilder>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||