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 TypeMethodDescriptionbooleanisSupported(ASiCContent... asicContents) Returns whether the format of given containers is supported by the currentASiCContainerMergerbooleanisSupported(DSSDocument... containers) Returns whether the format of given containers is supported by the currentASiCContainerMergermerge()Merges given containers to a new container document, when possibleMerges given containers to a singleASiCContent, when possible
-
Method Details
-
isSupported
Returns whether the format of given containers is supported by the currentASiCContainerMerger- Parameters:
containers-DSSDocuments to be merged- Returns:
- TRUE if all documents are supported by the current container, FALSE otherwise
-
isSupported
Returns whether the format of given containers is supported by the currentASiCContainerMerger- 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:
DSSDocumentrepresenting a merge result of the given ZIP-containers
-
mergeToASiCContent
ASiCContent mergeToASiCContent()Merges given containers to a singleASiCContent, when possible- Returns:
ASiCContentrepresenting a merge result
-