Interface ZipContainerHandler

All Known Implementing Classes:
SecureContainerHandler

public interface ZipContainerHandler
The interface provides utilities for data extraction/creation of ZIP-archives
  • Method Details

    • extractContainerContent

      List<DSSDocument> extractContainerContent(DSSDocument zipArchive)
      Extracts a list of DSSDocument from the given ZIP-archive
      Parameters:
      zipArchive - DSSDocument
      Returns:
      a list of DSSDocuments
    • extractEntryNames

      List<String> extractEntryNames(DSSDocument zipArchive)
      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 given containerEntries
      Parameters:
      containerEntries - a list of DSSDocuments to embed into the new container instance
      creationTime - (Optional) Date defined time of an archive creation, will be set for all embedded files. If null, the local current time will be used
      zipComment - (Optional) String defined a zipComment
      Returns:
      DSSDocument ZIP-Archive