net.grelf.image
Class FITS_KeywordRecord

java.lang.Object
  extended by net.grelf.image.FITS_KeywordRecord

public class FITS_KeywordRecord
extends java.lang.Object

Representing an 80-byte FITS keyword record as read from a FITS stream, with its keyword, value and comment (if any).


Constructor Summary
FITS_KeywordRecord(byte[] record)
          Construct from 80-character record as read from FITS file.
FITS_KeywordRecord(java.lang.String keyword, java.lang.String value)
          Construct from scratch using a key and a value.
 
Method Summary
 java.lang.String getComment()
          Returns null if there is no comment.
 java.lang.String getKeyword()
           
 java.lang.String getRecord()
          The original unparsed record.
 java.lang.String getValue()
          Returns null if there is no value.
 boolean hasComment()
           
 boolean hasValue()
           
 void setValue(java.lang.String newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FITS_KeywordRecord

public FITS_KeywordRecord(byte[] record)
Construct from 80-character record as read from FITS file.


FITS_KeywordRecord

public FITS_KeywordRecord(java.lang.String keyword,
                          java.lang.String value)
Construct from scratch using a key and a value.

Method Detail

getRecord

public java.lang.String getRecord()
The original unparsed record.


getKeyword

public java.lang.String getKeyword()

getValue

public java.lang.String getValue()
Returns null if there is no value.


hasValue

public boolean hasValue()

setValue

public void setValue(java.lang.String newValue)

getComment

public java.lang.String getComment()
Returns null if there is no comment.


hasComment

public boolean hasComment()