|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnom.tam.fits.HeaderCard
This class describes methods to access and manipulate the individual cards for a FITS Header.
| Field Summary | |
(package private) String |
comment
The comment part of the card (set to null if there's no comment) |
(package private) boolean |
isString
A flag indicating whether or not this is a string value |
(package private) String |
key
The keyword part of the card (set to null if there's no keyword) |
(package private) String |
value
The value part of the card (set to null if there's no value) |
| Constructor Summary | |
HeaderCard(String card)
Create a HeaderCard from a FITS card image |
|
HeaderCard(String key,
String value,
String comment)
Create a HeaderCard from its component parts |
|
| Method Summary | |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
String key
String value
String comment
boolean isString
| Constructor Detail |
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 - comment
HeaderCardException - for any invalid keyword or valuepublic HeaderCard(String card)
card - the 80 character card image| Method Detail |
public boolean isStringValue()
public boolean isKeyValuePair()
public String getKey()
public String getValue()
public String getComment()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||