Class DSSZipEntry

java.lang.Object
eu.europa.esig.dss.asic.common.DSSZipEntry
All Implemented Interfaces:
Serializable

public class DSSZipEntry extends Object implements Serializable
Contains metadata for a ZIP-container entry
See Also:
  • Constructor Details

    • DSSZipEntry

      public DSSZipEntry(String name)
      Default constructor
      Parameters:
      name - String of the zip-entry to be created
    • DSSZipEntry

      public DSSZipEntry(ZipEntry zipEntry)
      Constructor from existing ZipEntry
      Parameters:
      zipEntry - ZipEntry
  • Method Details

    • getName

      public String getName()
      Gets name of the ZIP entry
      Returns:
      String
    • setName

      public void setName(String name)
      Sets name of the ZIP entry
      Parameters:
      name - String
    • getComment

      public String getComment()
      Gets comment defined for the ZIP entry
      Returns:
      String
    • setComment

      public void setComment(String comment)
      Sets comment defined for the ZIP entry
      Parameters:
      comment - String
    • getCompressionMethod

      public int getCompressionMethod()
      Gets compression method for the ZIP entry
      Returns:
      int identifier of the compression method
    • setCompressionMethod

      public void setCompressionMethod(int compressionMethod)
      Sets compression method for the ZIP entry
      Parameters:
      compressionMethod - int identifier of the compression method
    • getCreationTime

      public FileTime getCreationTime()
      Gets creation time of the document
      Returns:
      FileTime
    • setCreationTime

      public void setCreationTime(FileTime creationTime)
      Sets creation time of the document
      Parameters:
      creationTime - FileTime
    • setCreationTime

      public void setCreationTime(Date creationTime)
      Sets creation time of the document
      Parameters:
      creationTime - Date
    • getExtra

      public byte[] getExtra()
      Gets extra field for the document
      Returns:
      byte array
    • setExtra

      public void setExtra(byte[] extra)
      Sets extra field for the document
      Parameters:
      extra - byte array
    • getModificationTime

      public Date getModificationTime()
      Gets the last modification time of the document
      Returns:
      Date
    • getLastAccessTime

      public Date getLastAccessTime()
      Gets the last access time of the document
      Returns:
      Date
    • getSize

      public long getSize()
      Gets the size of uncompressed document
      Returns:
      size
    • getCompressedSize

      public long getCompressedSize()
      Gets the size of compressed document
      Returns:
      compressed size
    • getCrc

      public long getCrc()
      Gets CRC-32 checksum of the uncompressed document
      Returns:
      CRC-32 checksum
    • createZipEntry

      public ZipEntry createZipEntry()
      Creates a new copy of ZipEntry. NOTE: some fields are not copied, as they can be changed during container creation (i.e. modification time, size, crc, etc.).
      Returns:
      ZipEntry