org.entityfs.zip
Class ZipAdapterFactory
java.lang.Object
org.entityfs.zip.ZipAdapterFactory
- All Implemented Interfaces:
- AdapterFactory
public class ZipAdapterFactory
- extends Object
- implements AdapterFactory
This is the AdapterFactory
for creating ZIP file system and ZIP file
system entity adapters.
The createFileSystemAdapter(AdapterFactory, LogAdapterHolder, int)
scans through the Zip file and creates a tree of ZipFileDirectoryNode
object to represent the Zip file structure.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipAdapterFactory
public ZipAdapterFactory(ZipFile f)
createFileSystemAdapter
public FileSystemAdapter createFileSystemAdapter(AdapterFactory af,
LogAdapterHolder lah,
int bufSize)
- Create the Zip file system adapter.
This method scans through the Zip file and creates a tree of
ZipFileDirectoryNode
objects to represent the structure of the
Zip file. The ZipFileDirectoryNode
tree is used by the Zip file
directory adapters to keep track of their contents.
- Specified by:
createFileSystemAdapter
in interface AdapterFactory
createEntityAdapter
public EntityAdapter createEntityAdapter(EntityType et,
FileSystemAdapter fs,
DirectoryAdapter parent,
String name,
Object data,
boolean existsInBackend)
- Specified by:
createEntityAdapter
in interface AdapterFactory