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 Modifier and Type Field Description private java.lang.String[]
columnCompressionAlgorithms
private int
rowsPerTile
private java.util.List<BinaryTableTile>
tiles
-
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
-
-
-
-
Field Detail
-
rowsPerTile
private int rowsPerTile
-
tiles
private java.util.List<BinaryTableTile> tiles
-
columnCompressionAlgorithms
private java.lang.String[] columnCompressionAlgorithms
-
-
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
- Parameters:
h
- header to fill with the data from the current data object- Throws:
FitsException
- if the operation fails
-
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)
-
-