Class CompressParameters
java.lang.Object
nom.tam.fits.compression.provider.param.base.CompressParameters
- All Implemented Interfaces:
Cloneable,ICompressParameters
- Direct Known Subclasses:
BundledParameters,HCompressParameters,QuantizeParameters,RiceCompressParameters
(for internal use) A set of
CompressParameters that are bundled together, typically because they are
parameters that all link to the same ICompressOption- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the columns that hold the metadata for the parameters that are column based to the dhu.protected CompressParametersclone()protected ICompressColumnParameter[]Retuens the subset of parameters from within, which are recorded in compressed table columns along with the compressed data.voidgetValuesFromColumn(int index) extract the option data from the column and set it in the option.voidgetValuesFromHeader(IHeaderAccess header) extract the option values that are represented by headers from the hdu header.protected abstract ICompressHeaderParameter[]Returns the subset of parameters from within, which are recorded in the header of the compressed HDU.voidinitializeColumns(int size) initialize the column based parameter to the specified column length.voidinitializeColumns(IHeaderAccess header, BinaryTable binaryTable, int size) initialize the column based options of the compression algorithm from the binary table.voidsetTileIndex(int index) Initialize parameters for the given tile indexvoidsetValuesInColumn(int index) set the option values, that are column based, into the columns at the specified index.voidsetValuesInHeader(IHeaderAccess header) set the options values, that are hdu based, into the header.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nom.tam.fits.compression.provider.param.api.ICompressParameters
copy, setValueInColumn
-
Constructor Details
-
CompressParameters
public CompressParameters()
-
-
Method Details
-
addColumnsToTable
Description copied from interface:ICompressParametersAdd the columns that hold the metadata for the parameters that are column based to the dhu.- Specified by:
addColumnsToTablein interfaceICompressParameters- Parameters:
hdu- the hdu to add the column- Throws:
FitsException- if the column could not be added.
-
clone
-
setTileIndex
public void setTileIndex(int index) Description copied from interface:ICompressParametersInitialize parameters for the given tile index- Specified by:
setTileIndexin interfaceICompressParameters- Parameters:
index- the 0-based tile index
-
getValuesFromColumn
public void getValuesFromColumn(int index) Description copied from interface:ICompressParametersextract the option data from the column and set it in the option.- Specified by:
getValuesFromColumnin interfaceICompressParameters- Parameters:
index- the index in the column.
-
getValuesFromHeader
Description copied from interface:ICompressParametersextract the option values that are represented by headers from the hdu header.- Specified by:
getValuesFromHeaderin interfaceICompressParameters- Parameters:
header- the header to extract the option values.
-
initializeColumns
public void initializeColumns(IHeaderAccess header, BinaryTable binaryTable, int size) throws FitsException Description copied from interface:ICompressParametersinitialize the column based options of the compression algorithm from the binary table.- Specified by:
initializeColumnsin interfaceICompressParameters- Parameters:
header- the header of the hdubinaryTable- the table of the hdusize- the column size- Throws:
FitsException- if the column could not be initialized
-
initializeColumns
public void initializeColumns(int size) Description copied from interface:ICompressParametersinitialize the column based parameter to the specified column length.- Specified by:
initializeColumnsin interfaceICompressParameters- Parameters:
size- the column length.
-
setValuesInColumn
public void setValuesInColumn(int index) Description copied from interface:ICompressParametersset the option values, that are column based, into the columns at the specified index.- Specified by:
setValuesInColumnin interfaceICompressParameters- Parameters:
index- the index in the columns to set.
-
setValuesInHeader
Description copied from interface:ICompressParametersset the options values, that are hdu based, into the header.- Specified by:
setValuesInHeaderin interfaceICompressParameters- Parameters:
header- the header to set the option value- Throws:
HeaderCardException- if the header could not be set.
-
columnParameters
Retuens the subset of parameters from within, which are recorded in compressed table columns along with the compressed data.- Returns:
- the subset of parameters that are recorded in compressed table columns.
- See Also:
-
headerParameters
Returns the subset of parameters from within, which are recorded in the header of the compressed HDU.- Returns:
- the subset of parameters that are recorded in the compressed HDU's header.
- See Also:
-