Class HeaderAccess

java.lang.Object
nom.tam.fits.compression.provider.param.api.HeaderAccess
All Implemented Interfaces:
IHeaderAccess

public class HeaderAccess extends Object implements IHeaderAccess
Deprecated.
This class serves no purpose since 1.19. Will remove in some future. Prior to 1.19 Header threw hard HeaderCardException, and this class was added so we can convert these into soft IllegalArgumentException instead. However, now that we demoted HeaderCardException to be soft exceptions itself, there is no reason to convert. It just adds confusion.
(for internal use) Access to FITS header values with runtime exceptions only. Regular header access throws HeaderCardExceptions, which are hard exceptions. They really should have been softer runtime exceptions from the start, but unfortunately that was choice this library made a very long time ago, and we therefore stick to it, at least until the next major code revision (major version 2 at the earliest). So this class provides an alternative access to headers converting any HeaderCardExceptions to IllegalArgumentException.
See Also:
  • Constructor Details

    • HeaderAccess

      public HeaderAccess(Header header)
      Deprecated.

      Creates a new access to modifying a HeaderCard without the hard exceptions that HeaderCard may throw.

      Parameters:
      header - the FITS header we wish to access and modify
  • Method Details

    • getHeader

      public final Header getHeader()
      Deprecated.
      Returns the header that this class is providing access to.
      Specified by:
      getHeader in interface IHeaderAccess
      Returns:
      the Header that we access through this class
      Since:
      1.19