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 givencontainerEntries
extractContainerContent
(DSSDocument zipArchive) Extracts a list ofDSSDocument
from the given ZIP-archiveextractEntryNames
(DSSDocument zipArchive) Returns a list of ZIP archive entry names
-
Method Details
-
extractContainerContent
Extracts a list ofDSSDocument
from the given ZIP-archive- Parameters:
zipArchive
-DSSDocument
- Returns:
- a list of
DSSDocument
s
-
extractEntryNames
Returns a list of ZIP archive entry names- Parameters:
zipArchive
-DSSDocument
- Returns:
- a list of
String
entry names
-
createZipArchive
DSSDocument createZipArchive(List<DSSDocument> containerEntries, Date creationTime, String zipComment) Creates a ZIP-Archive with the givencontainerEntries
- Parameters:
containerEntries
- a list ofDSSDocument
s to embed into the new container instancecreationTime
- (Optional)Date
defined time of an archive creation, will be set for all embedded files. If null, the local current time will be usedzipComment
- (Optional)String
defined a zipComment- Returns:
DSSDocument
ZIP-Archive
-