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, wait
copy
public void addColumnsToTable(BinaryTableHDU hdu) throws FitsException
ICompressParameters
addColumnsToTable
in interface ICompressParameters
hdu
- the hdu to add the columnFitsException
- if the column could not be added.public void getValuesFromColumn(int index)
ICompressParameters
getValuesFromColumn
in interface ICompressParameters
index
- the index in the column.public void getValuesFromHeader(IHeaderAccess header)
ICompressParameters
getValuesFromHeader
in interface ICompressParameters
header
- the header to extract the option values.public void initializeColumns(IHeaderAccess header, BinaryTable binaryTable, int size) throws FitsException
ICompressParameters
initializeColumns
in interface ICompressParameters
header
- the header of the hdubinaryTable
- the table of the hdusize
- the column sizeFitsException
- if the column could not be initializedpublic void initializeColumns(int size)
ICompressParameters
initializeColumns
in interface ICompressParameters
size
- the column length.public void setValueFromColumn(int index)
ICompressParameters
setValueFromColumn
in interface ICompressParameters
index
- the index in the columns to set.public void setValuesInHeader(IHeaderAccess header) throws HeaderCardException
ICompressParameters
setValuesInHeader
in interface ICompressParameters
header
- the header to set the option valueHeaderCardException
- if the header could not be set.protected ICompressColumnParameter[] columnParameters()
protected abstract ICompressHeaderParameter[] headerParameters()
Copyright © 1996–2016 nom-tam-fits. All rights reserved.