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 CompressActionFactory
createFactoryForAlgorithm
(String algorithm) Creates the appropriateCompressActionFactory
for the given compression algorithm.default @Nullable CompressActionFactory
createFactoryForFileName
(String fileName) Creates the appropriateCompressActionFactory
for the given file name.newInstance
(@Nullable Configuration configuration)
-
Field Details
-
NAMESPACE
- See Also:
-
-
Method Details
-
createFactoryForAlgorithm
Creates the appropriateCompressActionFactory
for 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
CompressActionFactory
ornull
if the extension is not supported.
-
createFactoryForFileName
Creates the appropriateCompressActionFactory
for the given file name.- Parameters:
fileName
- The file name.- Returns:
- A
CompressActionFactory
ornull
if the extension is not supported.
-
newInstance
-