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
digestMap, mimeType, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFileArchiveEntry(FileDocument zipArchive, ZipEntry zipEntry) Default constructor -
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
-
FileArchiveEntry
Default constructor- Parameters:
zipArchive-FileDocumentrepresenting a ZIP-containerzipEntry-DSSZipEntrycontaining metadata for zip container entry to be extracted
-
-
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
-