Package com.bc.zarr

Class CompressorFactory


  • public class CompressorFactory
    extends Object
    • Field Detail

      • nullCompressor

        public static final Compressor nullCompressor
    • Constructor Detail

      • CompressorFactory

        public CompressorFactory()
    • Method Detail

      • getDefaultCompressorProperties

        public static Map<String,​Object> getDefaultCompressorProperties()
        Returns:
        the properties of the default compressor as a key/value map.
      • create

        public static Compressor create​(Map<String,​Object> properties)
        Creates a new Compressor instance according to the given properties.
        Parameters:
        properties - a Map containing the properties to create a compressor
        Returns:
        a new Compressor instance according to the properties
        Throws:
        IllegalArgumentException - If it is not able to create a Compressor.
      • create

        public static Compressor create​(String id,
                                        Object... keyValuePair)
        Creates a new Compressor instance according to the id and the given properties.
        Parameters:
        id - the type of the compression algorithm
        keyValuePair - an even count of key value pairs defining the compressor specific properties
        Returns:
        a new Compressor instance according to the id and the properties
        Throws:
        IllegalArgumentException - If it is not able to create a Compressor.
      • create

        public static Compressor create​(String id,
                                        Map<String,​Object> properties)
        Creates a new Compressor instance according to the id and the given properties.
        Parameters:
        id - the type of the compression algorithm
        properties - a Map containing the compressor specific properties
        Returns:
        a new Compressor instance according to the id and the properties
        Throws:
        IllegalArgumentException - If it is not able to create a Compressor.