Class BlanksDotHierarchKeyFormatter
java.lang.Object
nom.tam.fits.header.hierarch.BlanksDotHierarchKeyFormatter
- All Implemented Interfaces:
IHierarchKeyFormatter
@Deprecated
public class BlanksDotHierarchKeyFormatter
extends Object
implements IHierarchKeyFormatter
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.intDeprecated.final booleanDeprecated.voidsetCaseSensitive(boolean value) Deprecated.toHeaderString(String key) Deprecated.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IHierarchKeyFormatter
getAssignStringForSpace, getMinAssignLengthModifier and TypeMethodDescriptiondefault StringgetAssignStringForSpace(int space) Returns the assignment string that separates the hierarchical key and value components, for the given amount of space available.default intReturns the minimum length of the sequence that separates keywords from values.
-
Constructor Details
-
BlanksDotHierarchKeyFormatter
Deprecated.Creates a HIERARCH keyword formatter instance with the desired number of blank spaces spearating components.- Parameters:
count- The number of blank spaces to separate hierarchical components (at least 1 is required).- Throws:
IllegalArgumentException- if count is less than 1
-
-
Method Details
-
append
Deprecated.Description copied from interface:IHierarchKeyFormatterAppends the formatted HIERARCH keyword to the Fits line buffer. For example as a step towards builing up the header card for this keyword.- Specified by:
appendin interfaceIHierarchKeyFormatter- Parameters:
key- The HIERARCH keyword in out own internal representation (HIERARCH.followed by the dot-sepatated hierarchical components).buffer- The FITS line buffer to which we want the formatted HIERARCH-style keyword to be appended.
-
getExtraSpaceRequired
Deprecated.Description copied from interface:IHierarchKeyFormatterReturns the extra spaces required when printing the key, relative to a space separated components following "HIERARCH " and the "= " prior to the value.- Specified by:
getExtraSpaceRequiredin interfaceIHierarchKeyFormatter- Parameters:
key- the HIERARCH-style header key.- Returns:
- the number of extra spaces relative to the most compact notation for the components.
-
toHeaderString
Deprecated.Description copied from interface:IHierarchKeyFormatterReturns the string reppresentation of the specified HIERARCH keyword in the FITS header- Specified by:
toHeaderStringin interfaceIHierarchKeyFormatter- Parameters:
key- the HIERARCH keyword, in the dot separated convention of this library- Returns:
- how this key looks in the FITS header with this formatting convention.
-
setCaseSensitive
Deprecated.Description copied from interface:IHierarchKeyFormatterSets whether case-sensitive (mixed-case) HIERARCH keywords are supported.- Specified by:
setCaseSensitivein interfaceIHierarchKeyFormatter- Parameters:
value- Iffalse(default), then all HIERARCH keywords will be converted to upper-case. Otherwise, case will be preserved.- See Also:
-
isCaseSensitive
Deprecated.Description copied from interface:IHierarchKeyFormatterChecks if this formatter allows support for case-sensitive (mixed-case) hierarchical keywords.- Specified by:
isCaseSensitivein interfaceIHierarchKeyFormatter- Returns:
- If
false(default), then all HIERARCH keywords will be converted to upper-case. Otherwise, case will be preserved.
-
StandardIHierarchKeyFormatter. Its use over the more standard formatter is discouraged.