Package nom.tam.image.compression.hdu
Enum Class BackupRestoreUnCompressedHeaderCard
java.lang.Object
java.lang.Enum<BackupRestoreUnCompressedHeaderCard>
nom.tam.image.compression.hdu.BackupRestoreUnCompressedHeaderCard
- All Implemented Interfaces:
Serializable
,Comparable<BackupRestoreUnCompressedHeaderCard>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addHeaderCard
(HeaderCard card, Cursor<String, HeaderCard> headerIterator, IFitsHeader targetKey) static void
backup
(HeaderCard card, Cursor<String, HeaderCard> headerIterator) protected void
backupCard
(HeaderCard card, Cursor<String, HeaderCard> headerIterator) default behaviour is to ignore the card and by that to exclude it from the uncompressed header if it does not have a uncompressed equivalent..protected IFitsHeader
static void
restore
(HeaderCard card, Cursor<String, HeaderCard> headerIterator) protected void
restoreCard
(HeaderCard card, Cursor<String, HeaderCard> headerIterator) protected static BackupRestoreUnCompressedHeaderCard
selectMapping
(Map<IFitsHeader, BackupRestoreUnCompressedHeaderCard> mappings, HeaderCard card) protected IFitsHeader
Returns the enum constant of this class with the specified name.static BackupRestoreUnCompressedHeaderCard[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAP_ANY
-
MAP_BITPIX
-
MAP_CHECKSUM
-
MAP_DATASUM
-
MAP_EXTNAME
-
MAP_GCOUNT
-
MAP_NAXIS
-
MAP_NAXISn
-
MAP_PCOUNT
-
MAP_ZFORMn
-
MAP_TFORMn
-
MAP_XTENSION
-
MAP_ZBITPIX
-
MAP_ZBLANK
-
MAP_ZTILELEN
-
MAP_ZCTYPn
-
MAP_ZBLOCKED
-
MAP_ZCMPTYPE
-
MAP_ZDATASUM
-
MAP_ZDITHER0
-
MAP_ZEXTEND
-
MAP_ZGCOUNT
-
MAP_ZHECKSUM
-
MAP_ZIMAGE
-
MAP_ZTABLE
-
MAP_ZNAMEn
-
MAP_ZNAXIS
-
MAP_THEAP
-
MAP_ZNAXISn
-
MAP_ZPCOUNT
-
MAP_ZQUANTIZ
-
MAP_ZSIMPLE
-
MAP_ZTENSION
-
MAP_ZTILEn
-
MAP_ZVALn
-
-
Field Details
-
compressedHeaderKey
-
uncompressedHeaderKey
-
-
Constructor Details
-
BackupRestoreUnCompressedHeaderCard
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
backup
public static void backup(HeaderCard card, Cursor<String, HeaderCard> headerIterator) throws HeaderCardException- Throws:
HeaderCardException
-
restore
public static void restore(HeaderCard card, Cursor<String, HeaderCard> headerIterator) throws HeaderCardException- Throws:
HeaderCardException
-
selectMapping
protected static BackupRestoreUnCompressedHeaderCard selectMapping(Map<IFitsHeader, BackupRestoreUnCompressedHeaderCard> mappings, HeaderCard card) -
addHeaderCard
private void addHeaderCard(HeaderCard card, Cursor<String, HeaderCard> headerIterator, IFitsHeader targetKey) throws HeaderCardException- Throws:
HeaderCardException
-
backupCard
protected void backupCard(HeaderCard card, Cursor<String, HeaderCard> headerIterator) throws HeaderCardExceptiondefault behaviour is to ignore the card and by that to exclude it from the uncompressed header if it does not have a uncompressed equivalent..- Parameters:
card
- the card from the compressed headerheaderIterator
- the iterator for the uncompressed header.- Throws:
HeaderCardException
- if the card could not be copied
-
compressedHeaderKey
-
restoreCard
protected void restoreCard(HeaderCard card, Cursor<String, HeaderCard> headerIterator) throws HeaderCardException- Throws:
HeaderCardException
-
uncompressedHeaderKey
-