Class ContainerEntryDocument
java.lang.Object
eu.europa.esig.dss.asic.common.ContainerEntryDocument
- All Implemented Interfaces:
DSSZipEntryDocument, Serializable
Represents an entry within a ZIP archive, containing its metadata and file's content.
This class can be used to create a file entry to be incorporated within an ASiC container
with customized
ZipEntry metadata (e.g. creation time, compression method, etc.).- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContainerEntryDocument(eu.europa.esig.dss.model.DSSDocument content) Default constructorContainerEntryDocument(eu.europa.esig.dss.model.DSSDocument content, DSSZipEntry zipEntry) Constructor with providedDSSZipEntry -
Method Summary
Modifier and TypeMethodDescriptionbooleaneu.europa.esig.dss.model.DigestgetDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) eu.europa.esig.dss.model.DigestgetDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) byte[]getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) byte[]getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) eu.europa.esig.dss.enumerations.MimeTypeeu.europa.esig.dss.enumerations.MimeTypegetName()getName()Returns ZIP entry wrapper containing metadata about a file within a ZIP-containerinthashCode()voidvoidvoidsetMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) voidsetMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) voidtoString()voidwriteTo(OutputStream arg0) voidwriteTo(OutputStream arg0)
-
Field Details
-
digestMap
-
mimeType
protected eu.europa.esig.dss.enumerations.MimeType mimeType -
name
-
-
Constructor Details
-
ContainerEntryDocument
public ContainerEntryDocument(eu.europa.esig.dss.model.DSSDocument content) Default constructor- Parameters:
content-DSSDocumentrepresenting file's content
-
ContainerEntryDocument
Constructor with providedDSSZipEntry- Parameters:
content-DSSDocumentrepresenting file's contentzipEntry-DSSZipEntrycontaining metadata about the ZIP entry
-
-
Method Details
-
openStream
-
setName
-
getZipEntry
Description copied from interface:DSSZipEntryDocumentReturns ZIP entry wrapper containing metadata about a file within a ZIP-container- Specified by:
getZipEntryin interfaceDSSZipEntryDocument- Returns:
DSSZipEntry
-
equals
-
hashCode
public int hashCode() -
writeTo
- Throws:
IOException
-
getName
String getName() -
getMimeType
eu.europa.esig.dss.enumerations.MimeType getMimeType() -
setMimeType
void setMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) -
save
- Throws:
IOException
-
getDigest
eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
getDigestValue
byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
save
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
getMimeType
public eu.europa.esig.dss.enumerations.MimeType getMimeType() -
setMimeType
public void setMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) -
getName
-
getDigest
public eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
getDigestValue
public byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
toString
-