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 TypeMethodDescriptionboolean
isSupported
(ASiCContent... asicContents) Returns whether the format of given containers is supported by the currentASiCContainerMerger
boolean
isSupported
(DSSDocument... containers) Returns whether the format of given containers is supported by the currentASiCContainerMerger
merge()
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
-DSSDocument
s 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
-ASiCContent
s 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 singleASiCContent
, when possible- Returns:
ASiCContent
representing a merge result
-