Package eu.europa.esig.dss.asic.common
Class DSSZipEntry
java.lang.Object
eu.europa.esig.dss.asic.common.DSSZipEntry
-
Constructor Summary
ConstructorsConstructorDescriptionDSSZipEntry(String name) Default constructorDSSZipEntry(ZipEntry zipEntry) Constructor from existingZipEntry -
Method Summary
Modifier and TypeMethodDescriptionCreates a new copy ofZipEntry.Gets comment defined for the ZIP entrylongGets the size of compressed documentintGets compression method for the ZIP entrylonggetCrc()Gets CRC-32 checksum of the uncompressed documentGets creation time of the documentbyte[]getExtra()Gets extra field for the documentGets the last access time of the documentGets the last modification time of the documentgetName()Gets name of the ZIP entrylonggetSize()Gets the size of uncompressed documentvoidsetComment(String comment) Sets comment defined for the ZIP entryvoidsetCompressionMethod(int compressionMethod) Sets compression method for the ZIP entryvoidsetCreationTime(FileTime creationTime) Sets creation time of the documentvoidsetCreationTime(Date creationTime) Sets creation time of the documentvoidsetExtra(byte[] extra) Sets extra field for the documentvoidSets name of the ZIP entry
-
Constructor Details
-
DSSZipEntry
-
DSSZipEntry
-
-
Method Details
-
getName
-
setName
-
getComment
-
setComment
-
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
-
setCreationTime
-
setCreationTime
-
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
-
getLastAccessTime
-
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
-