Interface ASiCContainerMerger

All Known Implementing Classes:
AbstractASiCWithCAdESContainerMerger, AbstractASiCWithXAdESContainerMerger, ASiCEWithCAdESContainerMerger, ASiCEWithXAdESContainerMerger, ASiCSWithCAdESContainerMerger, ASiCSWithXAdESContainerMerger, DefaultContainerMerger

public interface ASiCContainerMerger
This class is used to verify a possibility to merge ASiC containers and merge them in a single container, when possible.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isSupported(ASiCContent... asicContents)
    Returns whether the format of given containers is supported by the current ASiCContainerMerger
    boolean
    isSupported(DSSDocument... containers)
    Returns whether the format of given containers is supported by the current ASiCContainerMerger
    Merges given containers to a new container document, when possible
    Merges given containers to a single ASiCContent, when possible
  • Method Details

    • isSupported

      boolean isSupported(DSSDocument... containers)
      Returns whether the format of given containers is supported by the current ASiCContainerMerger
      Parameters:
      containers - DSSDocuments to be merged
      Returns:
      TRUE if all documents are supported by the current container, FALSE otherwise
    • isSupported

      boolean isSupported(ASiCContent... asicContents)
      Returns whether the format of given containers is supported by the current ASiCContainerMerger
      Parameters:
      asicContents - ASiCContents to be merged
      Returns:
      TRUE if all containers are supported by the current container, FALSE otherwise
    • merge

      DSSDocument merge()
      Merges given containers to a new container document, when possible
      Returns:
      DSSDocument representing a merge result of the given ZIP-containers
    • mergeToASiCContent

      ASiCContent mergeToASiCContent()
      Merges given containers to a single ASiCContent, when possible
      Returns:
      ASiCContent representing a merge result