Package org.openpreservation.format.zip
Class ZipEntryImpl
java.lang.Object
org.openpreservation.format.zip.ZipEntryImpl
- All Implemented Interfaces:
ZipEntry
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Get the compressed size of the entry in byteslong
getCrc()
Get the CRC of the entrybyte[]
getExtra()
Get the extra field data for the entryint
Get the integer code for the compression method used for the entry.getName()
Get the name of the entrylong
getSize()
Get the size of the entry in bytesint
hashCode()
boolean
Is the entry a directory?boolean
isStored()
Is the entrySTORED
, e.g.toString()
-
Method Details
-
getName
Description copied from interface:ZipEntry
Get the name of the entry -
getSize
public long getSize()Description copied from interface:ZipEntry
Get the size of the entry in bytes -
getCompressedSize
public long getCompressedSize()Description copied from interface:ZipEntry
Get the compressed size of the entry in bytes- Specified by:
getCompressedSize
in interfaceZipEntry
- Returns:
- the
long
compressed size of the entry in bytes
-
getCrc
public long getCrc()Description copied from interface:ZipEntry
Get the CRC of the entry -
isStored
public boolean isStored()Description copied from interface:ZipEntry
Is the entrySTORED
, e.g. not compressed? -
getMethod
public int getMethod()Description copied from interface:ZipEntry
Get the integer code for the compression method used for the entry. -
isDirectory
public boolean isDirectory()Description copied from interface:ZipEntry
Is the entry a directory?- Specified by:
isDirectory
in interfaceZipEntry
- Returns:
true
if the entry is a directory,false
otherwise
-
getExtra
public byte[] getExtra()Description copied from interface:ZipEntry
Get the extra field data for the entry -
hashCode
public int hashCode() -
equals
-
toString
-