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 Type
    Method
    Description
    long
    Get the compressed size of the entry in bytes
    long
    Get the CRC of the entry
    byte[]
    Get the extra field data for the entry
    int
    Get the integer code for the compression method used for the entry.
    Get the name of the entry
    long
    Get the size of the entry in bytes
    boolean
    Is the entry a directory?
    boolean
    Is the entry STORED, 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 entry STORED, 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.