Package eu.europa.esig.dss.asic.common
Class FileArchiveEntry
java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.asic.common.FileArchiveEntry
- All Implemented Interfaces:
DSSZipEntryDocument
,DSSDocument
,Serializable
Internal class that is used for performance purposes, accessing ZIP-archive entries on request,
instead of loading all files into memory.
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.model.CommonDocument
base64EncodeDigestMap, mimeType, name
-
Constructor Summary
ModifierConstructorDescriptionprotected
FileArchiveEntry
(FileDocument zipArchive, ZipEntry zipEntry) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns ZIP entry wrapper containing metadata about a file within a ZIP-containerOpens aInputStream
on theDSSDocument
contents.void
This method sets the name of theDSSDocument
.Methods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getMimeType, getName, save, setMimeType, toString, writeTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.model.DSSDocument
getDigest, getMimeType, getName, save, setMimeType, writeTo
-
Constructor Details
-
FileArchiveEntry
Default constructor- Parameters:
zipArchive
-FileDocument
representing a ZIP-containerzipEntry
-DSSZipEntry
containing metadata for zip container entry to be extracted
-
-
Method Details
-
openStream
Description copied from interface:DSSDocument
Opens aInputStream
on theDSSDocument
contents. The type of theInputStream
depends on the type of theDSSDocument
.- Specified by:
openStream
in interfaceDSSDocument
- Returns:
- an
InputStream
-
setName
Description copied from interface:DSSDocument
This method sets the name of theDSSDocument
.- Specified by:
setName
in interfaceDSSDocument
- Overrides:
setName
in classCommonDocument
- Parameters:
name
- the document name
-
getZipEntry
Description copied from interface:DSSZipEntryDocument
Returns ZIP entry wrapper containing metadata about a file within a ZIP-container- Specified by:
getZipEntry
in interfaceDSSZipEntryDocument
- Returns:
DSSZipEntry
-