nom.tam.fits
Class HeaderCard

java.lang.Object
  extended by nom.tam.fits.HeaderCard

public class HeaderCard
extends java.lang.Object

This class describes methods to access and manipulate the individual cards for a FITS Header.


Constructor Summary
HeaderCard(java.lang.String card)
          Create a HeaderCard from a FITS card image
HeaderCard(java.lang.String key, java.lang.String value, java.lang.String comment)
          Create a HeaderCard from its component parts
 
Method Summary
 java.lang.String getComment()
          Return the comment from this card
 java.lang.String getKey()
          Return the keyword from this card
 java.lang.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?
 java.lang.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
 

Constructor Detail

HeaderCard

public HeaderCard(java.lang.String key,
                  java.lang.String value,
                  java.lang.String comment)
           throws HeaderCardException
Create a HeaderCard from its component parts

Parameters:
key - keyword (null for a comment)
value - value (null for a comment or keyword without an '=')
comment - comment
Throws:
HeaderCardException - for any invalid keyword or value

HeaderCard

public HeaderCard(java.lang.String card)
Create a HeaderCard from a FITS card image

Parameters:
card - the 80 character card image
Method Detail

isStringValue

public boolean isStringValue()
Does this card contain a string value?


isKeyValuePair

public boolean isKeyValuePair()
Is this a key/value card?


getKey

public java.lang.String getKey()
Return the keyword from this card


getValue

public java.lang.String getValue()
Return the value from this card


getComment

public java.lang.String getComment()
Return the comment from this card


toString

public java.lang.String toString()
Return the 80 character card image

Overrides:
toString in class java.lang.Object