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 theICompressorProvider
interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
CompressorProvider.TileCompressorControl
private 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_COMPRESSORS
private static java.util.logging.Logger
LOG
logger to log to.private static CompressorControlNameComputer
NAME_COMPUTER
private static ICompressOption
NULL_OPTION
private static ICompressParameters
NULL_PARAMETERS
-
Constructor Summary
Constructors Constructor Description CompressorProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ICompressorControl
createCompressorControl(java.lang.String quantAlgorithm, java.lang.String compressionAlgorithm, java.lang.Class<?> baseType)
static ICompressorControl
findCompressorControl(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:
createCompressorControl
in 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
ICompressorControl
to use for the specified quantize and compression algorithms and base type.
-
-