|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.zip.cap.fs.FSCZipFileBackedUtil
public final class FSCZipFileBackedUtil
This is a utility class with static utility methods for working with file
systems supporting the FSCZipFileBacked
capability.
FSCZipFileBacked
Method Summary | |
---|---|
static FileSystem |
getParentFileSystem(FileSystem fs)
Return the file system where the backing ZipFile is. |
static ZipFile |
getZipFile(FileSystem fs)
Get the ZipFile backing the Zip file system, if it can be
constructed. |
static boolean |
hasParentFileSystem(FileSystem fs)
Does the Zip file system have a parent file system? If the Zip file system was created on a Zip EFile , it has. |
static boolean |
hasZipFile(FileSystem fs)
Check if the Zip file-backed file system can return a ZipFile
object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ZipFile getZipFile(FileSystem fs) throws UnsupportedCapabilityException
ZipFile
backing the Zip file system, if it can be
constructed.
fs
- The file system.
null
if it
cannot be constructed.
UnsupportedCapabilityException
- If the file system does not
support the FSCZipFileBacked
capability.public static boolean hasZipFile(FileSystem fs) throws UnsupportedCapabilityException
ZipFile
object. If the file system was created on an empty (size 0) file, it
cannot.
fs
- The file system to check for.
true
if the Zip file-backed file system can return a
ZipFile
object.
UnsupportedCapabilityException
- If the file system does not
support the FSCZipFileBacked
capability.public static FileSystem getParentFileSystem(FileSystem fs) throws UnsupportedCapabilityException
ZipFile
is. This works
if the Zip file system was created on an EFile
Zip file.
fs
- The Zip file system.
UnsupportedCapabilityException
- If the file system does not
support the FSCZipFileBacked
capability.public static boolean hasParentFileSystem(FileSystem fs) throws UnsupportedCapabilityException
EFile
, it has.
fs
- The Zip file system.
true
if the Zip file system has a parent file system,
false
if not.
UnsupportedCapabilityException
- If the file system does not
support the FSCZipFileBacked
capability.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |