Package eu.europa.esig.dss.asic.common
Class ContainerEntryDocument
java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.asic.common.ContainerEntryDocument
- All Implemented Interfaces:
DSSZipEntryDocument,DSSDocument,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 inherited from class eu.europa.esig.dss.model.CommonDocument
digestMap, mimeType, name -
Constructor Summary
ConstructorsConstructorDescriptionContainerEntryDocument(DSSDocument content) Default constructorContainerEntryDocument(DSSDocument content, DSSZipEntry zipEntry) Constructor with providedDSSZipEntry -
Method Summary
Modifier and TypeMethodDescriptionReturns ZIP entry wrapper containing metadata about a file within a ZIP-containerOpens aInputStreamon theDSSDocumentcontents.voidThis method sets the name of theDSSDocument.Methods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getDigestValue, getMimeType, getName, save, setMimeType, toString, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.model.DSSDocument
getDigest, getDigestValue, getMimeType, getName, save, setMimeType, writeTo
-
Constructor Details
-
ContainerEntryDocument
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
Description copied from interface:DSSDocumentOpens aInputStreamon theDSSDocumentcontents. The type of theInputStreamdepends on the type of theDSSDocument.- Specified by:
openStreamin interfaceDSSDocument- Returns:
- an
InputStream
-
setName
Description copied from interface:DSSDocumentThis method sets the name of theDSSDocument.- Specified by:
setNamein interfaceDSSDocument- Overrides:
setNamein classCommonDocument- Parameters:
name- the document name
-
getZipEntry
Description copied from interface:DSSZipEntryDocumentReturns ZIP entry wrapper containing metadata about a file within a ZIP-container- Specified by:
getZipEntryin interfaceDSSZipEntryDocument- Returns:
DSSZipEntry
-