Class CompressorProvider
- java.lang.Object
-
- nom.tam.fits.compression.provider.CompressorProvider
-
- All Implemented Interfaces:
ICompressorProvider
public class CompressorProvider extends java.lang.Object implements ICompressorProvider
Standard implementation of theICompressorProviderinterface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCompressorProvider.TileCompressorControlprivate implementation of the tile compression provider, all is based on the option based constructor of the compressors.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Class<?>[][]AVAILABLE_COMPRESSORSprivate static java.util.logging.LoggerLOGlogger to log to.private static CompressorControlNameComputerNAME_COMPUTERprivate static ICompressOptionNULL_OPTIONprivate static ICompressParametersNULL_PARAMETERS
-
Constructor Summary
Constructors Constructor Description CompressorProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ICompressorControlcreateCompressorControl(java.lang.String quantAlgorithm, java.lang.String compressionAlgorithm, java.lang.Class<?> baseType)static ICompressorControlfindCompressorControl(java.lang.String quantAlgorithm, java.lang.String compressionAlgorithm, java.lang.Class<?> baseType)
-
-
-
Field Detail
-
NULL_OPTION
private static final ICompressOption NULL_OPTION
-
NULL_PARAMETERS
private static final ICompressParameters NULL_PARAMETERS
-
AVAILABLE_COMPRESSORS
private static final java.lang.Class<?>[][] AVAILABLE_COMPRESSORS
-
NAME_COMPUTER
private static final CompressorControlNameComputer NAME_COMPUTER
-
LOG
private static final java.util.logging.Logger LOG
logger to log to.
-
-
Method Detail
-
findCompressorControl
public static ICompressorControl findCompressorControl(java.lang.String quantAlgorithm, java.lang.String compressionAlgorithm, java.lang.Class<?> baseType)
-
createCompressorControl
public ICompressorControl createCompressorControl(java.lang.String quantAlgorithm, java.lang.String compressionAlgorithm, java.lang.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.
-
-