# Interface CLNCompressorSPIFactoryType

All Known Implementing Classes:
  `CLNSupercompressionDEFLATE, CLNSupercompressionLZ4`

public interface CLNCompressorSPIFactoryType
The type of compressor factories.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CLNCompressorSPIType`
  `createCompressor(CLNCompressorSPIRequest request)`
  Create a compressor.
  `String`
  `name()`
  `List<CLNSuperCompressionMethodType>`
  `supportedCompressionMethods()`
  `default boolean`
  `supportsCompressionFor(CLNSuperCompressionMethodType method)`
  Determine if a compression method is supported.

- ## Method Details

  - ### supportsCompressionFor

    default boolean supportsCompressionFor(CLNSuperCompressionMethodType method)
    Determine if a compression method is supported.
    Parameters:
      `method` - The compression method
    Returns:
      `true` if the compression method is supported

  - ### createCompressor

    CLNCompressorSPIType createCompressor(CLNCompressorSPIRequest request) throws IOException
    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