Package eu.europa.esig.dss.asic.common
Interface ZipContainerHandler
- All Known Implementing Classes:
SecureContainerHandler
public interface ZipContainerHandler
The interface provides utilities for data extraction/creation of ZIP-archives
-
Method Summary
Modifier and TypeMethodDescriptioncreateZipArchive(List<DSSDocument> containerEntries, Date creationTime, String zipComment) Creates a ZIP-Archive with the givencontainerEntriesextractContainerContent(DSSDocument zipArchive) Extracts a list ofDSSDocumentfrom the given ZIP-archiveextractEntryNames(DSSDocument zipArchive) Returns a list of ZIP archive entry names
-
Method Details
-
extractContainerContent
Extracts a list ofDSSDocumentfrom the given ZIP-archive- Parameters:
zipArchive-DSSDocument- Returns:
- a list of
DSSDocuments
-
extractEntryNames
Returns a list of ZIP archive entry names- Parameters:
zipArchive-DSSDocument- Returns:
- a list of
Stringentry names
-
createZipArchive
DSSDocument createZipArchive(List<DSSDocument> containerEntries, Date creationTime, String zipComment) Creates a ZIP-Archive with the givencontainerEntries- Parameters:
containerEntries- a list ofDSSDocuments to embed into the new container instancecreationTime- (Optional)Datedefined time of an archive creation, will be set for all embedded files. If null, the local current time will be usedzipComment- (Optional)Stringdefined a zipComment- Returns:
DSSDocumentZIP-Archive
-