org.entityfs.zip
Class ECZipEntryImpl

java.lang.Object
  extended by org.entityfs.cap.AbstractEntityCapability<EntityImplementation>
      extended by org.entityfs.zip.ECZipEntryImpl
All Implemented Interfaces:
EntityCapability, ECZipEntry

public class ECZipEntryImpl
extends AbstractEntityCapability<EntityImplementation>
implements ECZipEntry, EntityCapability


Constructor Summary
ECZipEntryImpl(EntityImplementation ent)
           
 
Method Summary
 String getComment()
          Get the entity's comment.
 long getCompressedSize()
          Get the compressed size of the entity.
 long getCrc()
          Get the CRC checksum for the entity.
 byte[] getExtra()
          Get extra information for the entity.
protected  ZipEntry getZipEntry()
           
 
Methods inherited from class org.entityfs.cap.AbstractEntityCapability
assertIsValid, getEntity, getEntityInternal, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.entityfs.cap.EntityCapability
getEntity, isValid
 

Constructor Detail

ECZipEntryImpl

public ECZipEntryImpl(EntityImplementation ent)
Method Detail

getZipEntry

protected ZipEntry getZipEntry()

getExtra

public byte[] getExtra()
Description copied from interface: ECZipEntry
Get extra information for the entity.

Specified by:
getExtra in interface ECZipEntry
Returns:
The Zip entry extra data or null if none.
See Also:
ZipEntry.getExtra()

getCrc

public long getCrc()
Description copied from interface: ECZipEntry
Get the CRC checksum for the entity.

Specified by:
getCrc in interface ECZipEntry
Returns:
The Zip entry CRC-32 checksum, or -1 if not known.
See Also:
ZipEntry.getCrc()

getCompressedSize

public long getCompressedSize()
Description copied from interface: ECZipEntry
Get the compressed size of the entity.

Specified by:
getCompressedSize in interface ECZipEntry
Returns:
The compressed size of the Zip entry, or -1 if not known.
See Also:
ZipEntry.getCompressedSize()

getComment

public String getComment()
Description copied from interface: ECZipEntry
Get the entity's comment.

Specified by:
getComment in interface ECZipEntry
Returns:
The Zip entry comment, or null if none.
See Also:
ZipEntry.getComment()