Package org.openpreservation.format.zip
Interface ZipEntry
- All Known Implementing Classes:
ZipEntryImpl
public interface ZipEntry
An interface for recording and accessing the properties of an entry from a
ZipArchive
.-
Method Summary
Modifier and TypeMethodDescriptionlong
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 bytesboolean
Is the entry a directory?boolean
isStored()
Is the entrySTORED
, e.g.
-
Method Details
-
getName
String getName()Get the name of the entry- Returns:
- the
String
name of the entry
-
getSize
long getSize()Get the size of the entry in bytes- Returns:
- the
long
size of the entry in bytes
-
getCompressedSize
long getCompressedSize()Get the compressed size of the entry in bytes- Returns:
- the
long
compressed size of the entry in bytes
-
getCrc
long getCrc()Get the CRC of the entry- Returns:
- the
long
CRC of the entry
-
isStored
boolean isStored()Is the entrySTORED
, e.g. not compressed?- Returns:
true
if the entry is uncompressed,false
otherwise
-
getMethod
int getMethod()Get the integer code for the compression method used for the entry.- Returns:
- the
int
compression method code
-
isDirectory
boolean isDirectory()Is the entry a directory?- Returns:
true
if the entry is a directory,false
otherwise
-
getExtra
byte[] getExtra()Get the extra field data for the entry- Returns:
- the
byte[]
extra field data for the entry.
-