org.entityfs.at4jzip.cap.entity
Class ECAt4JZipEntryUtil

java.lang.Object
  extended by org.entityfs.at4jzip.cap.entity.ECAt4JZipEntryUtil

public final class ECAt4JZipEntryUtil
extends Object

This utility class has static methods for working with entities supporting the ECAt4jZipEntry capability.

Since:
1.2
Author:
Karl Gustafsson
See Also:
ECAt4jZipEntry
In_jar:
entityfs-zipat4j

Method Summary
static ECAt4jZipEntry getCapability(EntityView ent)
          Get the capability object for an entity.
static ZipEntry getZipEntry(EntityView ent)
          Get the ZipEntry for an entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCapability

public static ECAt4jZipEntry getCapability(EntityView ent)
                                    throws UnsupportedCapabilityException
Get the capability object for an entity.

Parameters:
ent - The entity.
Returns:
The capability object.
Throws:
UnsupportedCapabilityException - If the entity does not support the ECAt4jZipEntry capability.

getZipEntry

public static ZipEntry getZipEntry(EntityView ent)
                            throws UnsupportedCapabilityException
Get the ZipEntry for an entity.

Parameters:
ent - The entity
Returns:
The ZipEntry for an entity.
Throws:
UnsupportedCapabilityException - If the entity does not support the ECAt4jZipEntry capability.