Interface CompressActionFactoryProvider
@NullMarked
public interface CompressActionFactoryProvider
Interface for plugins that provide additional compression algorithms.
- Since:
- 3.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable CompressActionFactorycreateFactoryForAlgorithm(String algorithm) Creates the appropriateCompressActionFactoryfor the given compression algorithm.default @Nullable CompressActionFactorycreateFactoryForFileName(String fileName) Creates the appropriateCompressActionFactoryfor the given file name.newInstance(@Nullable Configuration configuration)
-
Field Details
-
NAMESPACE
- See Also:
-
-
Method Details
-
createFactoryForAlgorithm
Creates the appropriateCompressActionFactoryfor the given compression algorithm.When applicable the algorithm should correspond to the name used by Apache Commons Compress.
- Parameters:
algorithm- The compression algorithm.- Returns:
- A
CompressActionFactoryornullif the extension is not supported.
-
createFactoryForFileName
Creates the appropriateCompressActionFactoryfor the given file name.- Parameters:
fileName- The file name.- Returns:
- A
CompressActionFactoryornullif the extension is not supported.
-
newInstance
-