Package nom.tam.fits.header
Class GenericKey
java.lang.Object
nom.tam.fits.header.GenericKey
generic key interface, create an IFitsHeader from a key.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final Map
<String, IFitsHeader> cache of all standard keys, for reusing the standards. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IFitsHeader
create a fits header key from a free stringstatic IFitsHeader[]
create a array of generic fits header keys from a array of string keys.static int
static IFitsHeader
lookup a string key in the standard key sets.
-
Field Details
-
NUMBER_BASE
private static final int NUMBER_BASE- See Also:
-
STANDARD_KEYS
cache of all standard keys, for reusing the standards.
-
-
Constructor Details
-
GenericKey
private GenericKey()utility class do not instanciate it.
-
-
Method Details
-
create
create a fits header key from a free string- Parameters:
key
- the string to create the key for- Returns:
- the IFitsHeader implementation for the key.
-
create
create a array of generic fits header keys from a array of string keys.- Parameters:
keys
- the array of string keys- Returns:
- the array of IFitsHeaderKeys.
-
getN
-
lookup
lookup a string key in the standard key sets.- Parameters:
key
- the fits key to search.- Returns:
- the found fits key or null
-