Interface CLNCompressorSPIFactoryType
- All Known Implementing Classes:
CLNSupercompressionLZ4
public interface CLNCompressorSPIFactoryType
The type of compressor factories.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCompressor
(CLNCompressorSPIRequest request) Create a compressor.name()
default boolean
Determine if a compression method is supported.
-
Method Details
-
supportsCompressionFor
Determine if a compression method is supported.- Parameters:
method
- The compression method- Returns:
true
if the compression method is supported
-
createCompressor
Create a compressor.- Parameters:
request
- The compression request- Returns:
- A compressor
- Throws:
IOException
- On errors
-
name
String name()- Returns:
- The name of the factory implementation
-
supportedCompressionMethods
List<CLNSuperCompressionMethodType> supportedCompressionMethods()- Returns:
- The list of the supported compression methods
-