Package nom.tam.fits
Class HeaderOrder
- java.lang.Object
-
- nom.tam.fits.HeaderOrder
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<java.lang.String>
public class HeaderOrder extends java.lang.Object implements java.util.Comparator<java.lang.String>, java.io.Serializable
This class implements a comparator which ensures that FITS keywords are written out in a proper order.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
Serialization id.
-
Constructor Summary
Constructors Constructor Description HeaderOrder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.String c1, java.lang.String c2)
Which order should the cards indexed by these keys be written out? This method assumes that the arguments are either the FITS Header keywords as strings, and some other type (or null) for comment style keywords.private static int
naxisN(java.lang.String key)
Find the index for NAXISn keywords
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serialization id.- See Also:
- Constant Field Values
-
-
Method Detail
-
compare
public int compare(java.lang.String c1, java.lang.String c2)
Which order should the cards indexed by these keys be written out? This method assumes that the arguments are either the FITS Header keywords as strings, and some other type (or null) for comment style keywords.- Specified by:
compare
in interfacejava.util.Comparator<java.lang.String>
- Returns:
- -1 if the first argument should be written first
1 if the second argument should be written first
0 if either is legal.
-
naxisN
private static int naxisN(java.lang.String key)
Find the index for NAXISn keywords
-
-