|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.impl.impl.adapter.AbstractFileSystemAdapter
org.entityfs.zip.ZipFileSystemAdapter
public class ZipFileSystemAdapter
Constructor Summary | |
---|---|
ZipFileSystemAdapter(LogAdapterHolder lah,
Map<AbsoluteLocation,org.entityfs.zip.ZipFileDirectoryNode> nodeLocationMap,
ZipFile zf,
int bufSize)
|
Method Summary | |
---|---|
void |
close()
The default implementation does nothing. |
boolean |
containsNode(AbsoluteLocation loc)
|
protected void |
finalize()
|
AbsoluteLocation |
getDirectoryAdapterLocation(ZipDirectoryAdapter da)
|
org.entityfs.zip.ZipFileDirectoryNode |
getDirectoryNode(AbsoluteLocation loc)
This is used by the FSACZipEntries capability. |
EntityType |
getEntityType(AbsoluteLocation loc)
Get the type of the entity at the specified location. |
ZipEntry |
getZipEntry(AbsoluteLocation loc)
Get the ZipEntry for the supplied location. |
ZipFile |
getZipFile()
|
boolean |
isCaseSensitive()
Is the file system backend case sensitive? |
void |
registerDirectoryAdapter(ZipDirectoryAdapter da,
AbsoluteLocation loc)
When a directory adapter is created, it is registered (through the FSACZipEntries capability) so that its location can be looked up
when creating its child entity adapters. |
Methods inherited from class org.entityfs.impl.impl.adapter.AbstractFileSystemAdapter |
---|
getBufferSize, getLogAdapter, init, validateEntityName |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipFileSystemAdapter(LogAdapterHolder lah, Map<AbsoluteLocation,org.entityfs.zip.ZipFileDirectoryNode> nodeLocationMap, ZipFile zf, int bufSize)
Method Detail |
---|
public boolean isCaseSensitive()
FileSystemAdapter
true
if the file system is case sensitive.public org.entityfs.zip.ZipFileDirectoryNode getDirectoryNode(AbsoluteLocation loc)
FSACZipEntries
capability.
public boolean containsNode(AbsoluteLocation loc)
public ZipFile getZipFile()
public EntityType getEntityType(AbsoluteLocation loc)
ZipFile
does not contain any entry at the supplied location, this is
interpreted as a directory entry.
loc
- The location of the entity.public ZipEntry getZipEntry(AbsoluteLocation loc)
ZipEntry
for the supplied location. For directories, this
may return null
.
loc
- The location to get the ZipEntry
for.
ZipEntry
or null
.public void registerDirectoryAdapter(ZipDirectoryAdapter da, AbsoluteLocation loc)
FSACZipEntries
capability) so that its location can be looked up
when creating its child entity adapters.
da
- The directory adapterloc
- The directory adapter's locationpublic AbsoluteLocation getDirectoryAdapterLocation(ZipDirectoryAdapter da)
public void close()
AbstractFileSystemAdapter
close
in interface FileSystemAdapter
close
in class AbstractFileSystemAdapter
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |