Package nom.tam.fits

Class NullDataHDU

All Implemented Interfaces:
FitsElement

public class NullDataHDU extends ImageHDU
A class of HDU that contains only a header only with no associated data. Such HDUs are commonly used as the primary HDU in FITS files where the leading data is not an image, since only images may constitute the primary HDU.
Since:
1.18
Author:
Attila Kovacs
See Also:
  • Constructor Details

    • NullDataHDU

      public NullDataHDU()
      Instantiates a new HDU with a default header and no associated data.
    • NullDataHDU

      public NullDataHDU(Header myHeader)
      Instantiates a new HDU with only the supplied header and no associated data.
      Parameters:
      myHeader - the FITS header for this HDU
  • Method Details

    • getData

      public NullData getData()
      Description copied from class: BasicHDU
      Returns the data component of this HDU.
      Overrides:
      getData in class BasicHDU<ImageData>
      Returns:
      the associated Data object
    • info

      public void info(PrintStream stream)
      Description copied from class: BasicHDU
      Print out some information about this HDU.
      Overrides:
      info in class ImageHDU
      Parameters:
      stream - the printstream to write the info on