java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.asic.common.ContainerEntryDocument
- All Implemented Interfaces:
DSSZipEntryDocument,eu.europa.esig.dss.model.DSSDocument,Serializable
public class ContainerEntryDocument
extends eu.europa.esig.dss.model.CommonDocument
implements DSSZipEntryDocument
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 inherited from class eu.europa.esig.dss.model.CommonDocument
digestMap, mimeType, name -
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 TypeMethodDescriptionbooleanReturns ZIP entry wrapper containing metadata about a file within a ZIP-containerinthashCode()voidMethods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getDigestValue, getMimeType, getName, save, setMimeType, toString, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.model.DSSDocument
getDigest, getDigestValue, getMimeType, getName, save, setMimeType, writeTo
-
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
- Specified by:
openStreamin interfaceeu.europa.esig.dss.model.DSSDocument
-
setName
- Specified by:
setNamein interfaceeu.europa.esig.dss.model.DSSDocument- Overrides:
setNamein classeu.europa.esig.dss.model.CommonDocument
-
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
- Overrides:
equalsin classeu.europa.esig.dss.model.CommonDocument
-
hashCode
public int hashCode()- Overrides:
hashCodein classeu.europa.esig.dss.model.CommonDocument
-