public class HeaderCard extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_KEYWORD_LENGTH
Maximum length of a FITS keyword field
|
static int |
MAX_VALUE_LENGTH
Maximum length of a FITS value field
|
Constructor and Description |
---|
HeaderCard(String card)
Create a HeaderCard from a FITS card image
|
HeaderCard(String key,
boolean value,
String comment)
Create a HeaderCard from its component parts
|
HeaderCard(String key,
double value,
String comment)
Create a HeaderCard from its component parts
|
HeaderCard(String key,
int value,
String comment) |
HeaderCard(String key,
long value,
String comment) |
HeaderCard(String key,
String value,
String comment)
Create a HeaderCard from its component parts
|
Modifier and Type | Method and Description |
---|---|
static HeaderCard |
create(String card)
Creates a HeaderCard from a FITS card image.
|
String |
getComment()
Return the comment from this card
|
String |
getKey()
Return the keyword from this card
|
String |
getValue()
Return the value from this card
|
boolean |
isKeyValuePair()
Is this a key/value card?
|
boolean |
isStringValue()
Does this card contain a string value?
|
String |
toString()
Return the 80 character card image
|
public static final int MAX_KEYWORD_LENGTH
public static final int MAX_VALUE_LENGTH
public HeaderCard(String key, double value, String comment) throws HeaderCardException
key
- keyword (null for a comment)value
- value (null for a comment or keyword without an '=')comment
- commentHeaderCardException
- for any invalid keywordpublic HeaderCard(String key, boolean value, String comment) throws HeaderCardException
key
- keyword (null for a comment)value
- value (null for a comment or keyword without an '=')comment
- commentHeaderCardException
- for any invalid keywordpublic HeaderCard(String key, int value, String comment) throws HeaderCardException
HeaderCardException
public HeaderCard(String key, long value, String comment) throws HeaderCardException
HeaderCardException
public HeaderCard(String key, String value, String comment) throws HeaderCardException
key
- keyword (null for a comment)value
- value (null for a comment or keyword without an '=')comment
- commentHeaderCardException
- for any invalid keyword or valuepublic HeaderCard(String card)
card
- the 80 character card imagepublic static HeaderCard create(String card)
HeaderCard(java.lang.String)
constructor.
It is here to match a method with the same signature from
later versions of nom.tam.fits (which lack the corresponding
constructor).card
- the 80 character card imagepublic boolean isStringValue()
public boolean isKeyValuePair()
public String getKey()
public String getValue()
public String getComment()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.