org.entityfs.jar.cap.fs
Class FSCJarFileBackedUtil

java.lang.Object
  extended by org.entityfs.jar.cap.fs.FSCJarFileBackedUtil

public final class FSCJarFileBackedUtil
extends Object

This is a utility class with static utility methods for working with file systems supporting the FSCJarFileBacked capability. In addition to the methods in this class, all methods in FSCZipFileBackedUtil can also be used on Jar file systems.

Since:
1.0
Author:
Karl Gustafsson
See Also:
FSCZipFileBackedUtil, FSCJarFileBacked
In_jar:
entityfs-jar

Method Summary
static JarFile getJarFile(FileSystem fs)
          Get the JarFile backing the Jar file system, if it can be constructed.
static boolean hasJarFile(FileSystem fs)
          Check if a JarFile can be constructed for the Jar file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJarFile

public static JarFile getJarFile(FileSystem fs)
                          throws UnsupportedCapabilityException
Get the JarFile backing the Jar file system, if it can be constructed.

Parameters:
fs - The file system.
Returns:
The Jar file system's backing Jar file, or null if it cannot be constructed.
Throws:
UnsupportedCapabilityException - If the file system does not support the FSCJarFileBacked capability.
See Also:
FSCJarFileBacked.getJarFile()

hasJarFile

public static boolean hasJarFile(FileSystem fs)
                          throws UnsupportedCapabilityException
Check if a JarFile can be constructed for the Jar file system.

Parameters:
fs - The file system.
Returns:
true if a JarFile can be constructed, false otherwise.
Throws:
UnsupportedCapabilityException - If the file system does not support the FSCJarFileBacked capability.
See Also:
FSCJarFileBacked.getJarFile()