Package nom.tam.image.compression.hdu
Class CompressedTableData
- java.lang.Object
-
- nom.tam.fits.Data
-
- nom.tam.fits.AbstractTableData
-
- nom.tam.fits.BinaryTable
-
- nom.tam.image.compression.hdu.CompressedTableData
-
- All Implemented Interfaces:
FitsElement
,TableData
public class CompressedTableData extends BinaryTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nom.tam.fits.BinaryTable
BinaryTable.ColumnDesc, BinaryTable.SaveState
-
-
Field Summary
-
Fields inherited from class nom.tam.fits.Data
dataSize, fileOffset, input
-
-
Constructor Summary
Constructors Constructor Description CompressedTableData()
CompressedTableData(Header header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BinaryTable
asBinaryTable(BinaryTable dataToFill, Header compressedHeader, Header targetHeader)
void
compress(Header header)
void
fillHeader(Header h)
Update a FITS header to reflect the current state of the data.protected int
getRowsPerTile()
void
prepareUncompressedData(ColumnTable<BinaryTable.SaveState> data)
protected void
setColumnCompressionAlgorithms(java.lang.String[] columnCompressionAlgorithms)
protected CompressedTableData
setRowsPerTile(int value)
-
Methods inherited from class nom.tam.fits.BinaryTable
addByteVaryingColumn, addColumn, addFlattenedColumn, addRow, createColumnDataFor, createColumnTable, deleteColumns, deleteRows, getBases, getColumn, getData, getDimens, getElement, getFlatColumns, getFlattenedColumn, getHeapOffset, getHeapSize, getModelRow, getNCols, getNRows, getRawElement, getRow, getSizes, getTDims, getTrueSize, getTypes, read, readHeap, readTrueData, setColumn, setElement, setFlattenedColumn, setRow, updateAfterDelete, validColumn, validRow, write
-
Methods inherited from class nom.tam.fits.Data
getFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffset
-
-
-
-
Constructor Detail
-
CompressedTableData
public CompressedTableData()
-
CompressedTableData
public CompressedTableData(Header header) throws FitsException
- Throws:
FitsException
-
-
Method Detail
-
compress
public void compress(Header header) throws FitsException
- Throws:
FitsException
-
fillHeader
public void fillHeader(Header h) throws FitsException
Description copied from class:BinaryTable
Update a FITS header to reflect the current state of the data. * @throws FitsException if the operation failed- Overrides:
fillHeader
in classBinaryTable
- Throws:
FitsException
-
prepareUncompressedData
public void prepareUncompressedData(ColumnTable<BinaryTable.SaveState> data) throws FitsException
- Throws:
FitsException
-
asBinaryTable
protected BinaryTable asBinaryTable(BinaryTable dataToFill, Header compressedHeader, Header targetHeader) throws FitsException
- Throws:
FitsException
-
getRowsPerTile
protected int getRowsPerTile()
-
setColumnCompressionAlgorithms
protected void setColumnCompressionAlgorithms(java.lang.String[] columnCompressionAlgorithms)
-
setRowsPerTile
protected CompressedTableData setRowsPerTile(int value)
-
-