Interface ICompressOption
- All Superinterfaces:
- Cloneable
- All Known Implementing Classes:
- HCompressorOption,- HCompressorQuantizeOption,- QuantizeOption,- RiceCompressOption,- RiceQuantizeCompressOption
Option for the compression algorithm, implementors are used to control the compression algorithm.
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Returns an independent copy of this option.nom.tam.fits.compression.provider.param.api.ICompressParameters(for internal use) Returns the parameters that represent the settings for this option in the FITS header or compressed data column.default intReturns the tile height (if supported), or else 0 (also the default implementation).default intReturns the tile width (if supported), or else 0 (also the default implementation).booleanChecks if this type of compression is inherently lossyvoidsetParameters(nom.tam.fits.compression.provider.param.api.ICompressParameters parameters) (for internal use) Sets the parameters that link the options to how they are recorded in the FITS headers or compressed table columns.setTileHeight(int value) Set the tile height (if the option supports it).setTileWidth(int value) Set the tile width (if the option supports it).<T> T(for internal use) Recasts these options for the specific implementation class
- 
Method Details- 
copyICompressOption copy()Returns an independent copy of this option. Modifications to the original or the copy will not affect the other.- Returns:
- copy the option (normally the option from with the copy happened is saved as original).
 
- 
getCompressionParametersnom.tam.fits.compression.provider.param.api.ICompressParameters getCompressionParameters()(for internal use) Returns the parameters that represent the settings for this option in the FITS header or compressed data column.- Returns:
- the parameters that must be synchronized with the hdu meta data.
- See Also:
 
- 
isLossyCompressionboolean isLossyCompression()Checks if this type of compression is inherently lossy- Returns:
- trueif the compression done with this specified options uses approximations. That means if the reconstruction of the data is excact the return should be- false.
 
- 
setParametersvoid setParameters(nom.tam.fits.compression.provider.param.api.ICompressParameters parameters) (for internal use) Sets the parameters that link the options to how they are recorded in the FITS headers or compressed table columns.- Parameters:
- parameters- the parameters to synchronized
- See Also:
 
- 
setTileHeightSet the tile height (if the option supports it). If the implementing option class does not have a setting for tile size, it should simply ignore the setting and return normally.- Parameters:
- value- the new tile height in pixels
- Returns:
- itself
- See Also:
 
- 
setTileWidthSet the tile width (if the option supports it). If the implementing option class does not have a setting for tile size, it should simply ignore the setting and return normally.- Parameters:
- value- the new tile with in pixels
- Returns:
- itself
- See Also:
 
- 
getTileHeightdefault int getTileHeight()Returns the tile height (if supported), or else 0 (also the default implementation).- Returns:
- the tile height in pixels, or 0 if the options do not have a tile size setting.
- Since:
- 1.18
- See Also:
 
- 
getTileWidthdefault int getTileWidth()Returns the tile width (if supported), or else 0 (also the default implementation).- Returns:
- the tile width in pixels, or 0 if the options do not have a tile size setting.
- Since:
- 1.18
- See Also:
 
- 
unwrap(for internal use) Recasts these options for the specific implementation class- Type Parameters:
- T- these options recast to the designated implementation type.
- Parameters:
- clazz- the implementation class
- Returns:
- the recast version of us or nullif the recasting is not available for the specified class type.
 
 
-