jsky.coords
Interface WCSKeywordProvider

All Known Implementing Classes:
FITSKeywordProvider

public interface WCSKeywordProvider

A simple interface for accessing FITS/WCS keywords.

Version:
$Revision: 1.1 $
Author:
Allan Brighton

Method Summary
 boolean findKey(java.lang.String key)
          Return true if the given keyword was found
 double getDoubleValue(java.lang.String key)
          Return the value of the given keyword as a double, or 0.0 if not found.
 double getDoubleValue(java.lang.String key, double defaultValue)
          Return the value of the given keyword as a double, or 0.0 if not found.
 float getFloatValue(java.lang.String key)
          Return the value of the given keyword as a double, or 0.0 if not found.
 float getFloatValue(java.lang.String key, float defaultValue)
          Return the value of the given keyword as a double, or 0.0 if not found.
 int getIntValue(java.lang.String key)
          Return the value of the given keyword as an int, or 0 if not found.
 int getIntValue(java.lang.String key, int defaultValue)
          Return the value of the given keyword as an int, or 0 if not found.
 java.lang.String getStringValue(java.lang.String key)
          Return the value of the given keyword as a String, or null if not found.
 java.lang.String getStringValue(java.lang.String key, java.lang.String defaultValue)
          Return the value of the given keyword as a String, or null if not found.
 

Method Detail

findKey

boolean findKey(java.lang.String key)
Return true if the given keyword was found


getStringValue

java.lang.String getStringValue(java.lang.String key)
Return the value of the given keyword as a String, or null if not found.


getStringValue

java.lang.String getStringValue(java.lang.String key,
                                java.lang.String defaultValue)
Return the value of the given keyword as a String, or null if not found.


getDoubleValue

double getDoubleValue(java.lang.String key)
Return the value of the given keyword as a double, or 0.0 if not found.


getDoubleValue

double getDoubleValue(java.lang.String key,
                      double defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found.


getFloatValue

float getFloatValue(java.lang.String key)
Return the value of the given keyword as a double, or 0.0 if not found.


getFloatValue

float getFloatValue(java.lang.String key,
                    float defaultValue)
Return the value of the given keyword as a double, or 0.0 if not found.


getIntValue

int getIntValue(java.lang.String key)
Return the value of the given keyword as an int, or 0 if not found.


getIntValue

int getIntValue(java.lang.String key,
                int defaultValue)
Return the value of the given keyword as an int, or 0 if not found.