public abstract class CompressParameters extends Object implements ICompressParameters
| Constructor and Description |
|---|
CompressParameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumnsToTable(BinaryTableHDU hdu)
Add the columns that hold the metadata for the parameters that are column
based to the dhu.
|
protected ICompressColumnParameter[] |
columnParameters() |
void |
getValuesFromColumn(int index)
extract the option data from the column and set it in the option.
|
void |
getValuesFromHeader(IHeaderAccess header)
extract the option values that are represented by headers from the hdu
header.
|
protected abstract ICompressHeaderParameter[] |
headerParameters() |
void |
initializeColumns(IHeaderAccess header,
BinaryTable binaryTable,
int size)
initialize the column based options of the compression algorithm from the
binary table.
|
void |
initializeColumns(int size)
initialize the column based parameter to the specified column length.
|
void |
setValueFromColumn(int index)
set the option values, that are column based, into the columns at the
specified index.
|
void |
setValuesInHeader(IHeaderAccess header)
set the options values, that are hdu based, into the header.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopypublic void addColumnsToTable(BinaryTableHDU hdu) throws FitsException
ICompressParametersaddColumnsToTable in interface ICompressParametershdu - the hdu to add the columnFitsException - if the column could not be added.public void getValuesFromColumn(int index)
ICompressParametersgetValuesFromColumn in interface ICompressParametersindex - the index in the column.public void getValuesFromHeader(IHeaderAccess header)
ICompressParametersgetValuesFromHeader in interface ICompressParametersheader - the header to extract the option values.public void initializeColumns(IHeaderAccess header, BinaryTable binaryTable, int size) throws FitsException
ICompressParametersinitializeColumns in interface ICompressParametersheader - the header of the hdubinaryTable - the table of the hdusize - the column sizeFitsException - if the column could not be initializedpublic void initializeColumns(int size)
ICompressParametersinitializeColumns in interface ICompressParameterssize - the column length.public void setValueFromColumn(int index)
ICompressParameterssetValueFromColumn in interface ICompressParametersindex - the index in the columns to set.public void setValuesInHeader(IHeaderAccess header) throws HeaderCardException
ICompressParameterssetValuesInHeader in interface ICompressParametersheader - the header to set the option valueHeaderCardException - if the header could not be set.protected ICompressColumnParameter[] columnParameters()
protected abstract ICompressHeaderParameter[] headerParameters()
Copyright © 1996–2018 nom-tam-fits. All rights reserved.