Class CompressorProvider
java.lang.Object
nom.tam.fits.compression.provider.CompressorProvider
- All Implemented Interfaces:
ICompressorProvider
Standard implementation of the
ICompressorProvider interface.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprivate implementation of the tile compression provider, all is based on the option based constructor of the compressors. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class<?>[][]private static final Loggerlogger to log to.private static final CompressorControlNameComputerprivate static final ICompressOptionprivate static final ICompressParameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCompressorControl(String quantAlgorithm, String compressionAlgorithm, Class<?> baseType) static ICompressorControlfindCompressorControl(String quantAlgorithm, String compressionAlgorithm, Class<?> baseType)
-
Field Details
-
NULL_OPTION
-
NULL_PARAMETERS
-
AVAILABLE_COMPRESSORS
-
NAME_COMPUTER
-
LOG
logger to log to.
-
-
Constructor Details
-
CompressorProvider
public CompressorProvider()
-
-
Method Details
-
findCompressorControl
public static ICompressorControl findCompressorControl(String quantAlgorithm, String compressionAlgorithm, Class<?> baseType) -
createCompressorControl
public ICompressorControl createCompressorControl(String quantAlgorithm, String compressionAlgorithm, Class<?> baseType) - Specified by:
createCompressorControlin interfaceICompressorProvider- Parameters:
quantAlgorithm- the quantification algorithm to use or null if nonecompressionAlgorithm- the compression algorithm to usebaseType- the base type of the data to (de)compress.- Returns:
- the
ICompressorControlto use for the specified quantize and compression algorithms and base type.
-