Class ZipEntryImpl

java.lang.Object
org.openpreservation.format.zip.ZipEntryImpl
All Implemented Interfaces:
ZipEntry

public final class ZipEntryImpl extends Object implements ZipEntry
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ZipEntry
      Get the name of the entry
      Specified by:
      getName in interface ZipEntry
      Returns:
      the String name of the entry
    • getSize

      public long getSize()
      Description copied from interface: ZipEntry
      Get the size of the entry in bytes
      Specified by:
      getSize in interface ZipEntry
      Returns:
      the long 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 interface ZipEntry
      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
      Specified by:
      getCrc in interface ZipEntry
      Returns:
      the long CRC of the entry
    • isStored

      public boolean isStored()
      Description copied from interface: ZipEntry
      Is the entry STORED, e.g. not compressed?
      Specified by:
      isStored in interface ZipEntry
      Returns:
      true if the entry is uncompressed, false otherwise
    • getMethod

      public int getMethod()
      Description copied from interface: ZipEntry
      Get the integer code for the compression method used for the entry.
      Specified by:
      getMethod in interface ZipEntry
      Returns:
      the int compression method code
    • isDirectory

      public boolean isDirectory()
      Description copied from interface: ZipEntry
      Is the entry a directory?
      Specified by:
      isDirectory in interface ZipEntry
      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
      Specified by:
      getExtra in interface ZipEntry
      Returns:
      the byte[] extra field data for the entry.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object