# Interface CLNDecompressorSPIFactoryType

All Known Implementing Classes:
  `CLNSupercompressionDEFLATE, CLNSupercompressionLZ4`

public interface CLNDecompressorSPIFactoryType
The type of decompressor factories.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CLNDecompressorSPIType`
  `createDecompressor(CLNDecompressorSPIRequest request)`
  Create a decompressor.
  `String`
  `name()`
  `List<CLNSuperCompressionMethodType>`
  `supportedDecompressionMethods()`
  `default boolean`
  `supportsDecompressionFor(CLNSuperCompressionMethodType method)`
  Determine if a compression method is supported.

- ## Method Details

  - ### supportsDecompressionFor

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

  - ### createDecompressor

    CLNDecompressorSPIType createDecompressor(CLNDecompressorSPIRequest request) throws IOException
    Create a decompressor.
    Parameters:
      `request` - The decompression request
    Returns:
      A decompressor
    Throws:
      `IOException` - On errors

  - ### name

    String name()
    Returns:
      The name of the factory implementation

  - ### supportedDecompressionMethods

    List<CLNSuperCompressionMethodType> supportedDecompressionMethods()
    Returns:
      The list of the supported compression methods