Package nom.tam.fits

Class UndefinedData

  • All Implemented Interfaces:
    FitsElement

    public class UndefinedData
    extends Data
    This class provides a simple holder for data which is not handled by other classes.
    • Field Detail

      • LOG

        private static final java.util.logging.Logger LOG
      • data

        private byte[] data
    • Constructor Detail

      • UndefinedData

        public UndefinedData​(java.lang.Object x)
        Create an UndefinedData object using the specified object.
        Parameters:
        x - object to create the hdu from
    • Method Detail

      • fillHeader

        protected void fillHeader​(Header head)
        Fill header with keywords that describe data.
        Specified by:
        fillHeader in class Data
        Parameters:
        head - The FITS header
      • getData

        public java.lang.Object getData()
        Specified by:
        getData in class Data
        Returns:
        the data array object.
      • getTrueSize

        protected long getTrueSize()
        Get the size in bytes of the data
        Specified by:
        getTrueSize in class Data
      • read

        public void read​(ArrayDataInput i)
                  throws FitsException
        Description copied from interface: FitsElement
        Read a data array into the current object and if needed position to the beginning of the next FITS block.
        Specified by:
        read in interface FitsElement
        Specified by:
        read in class Data
        Parameters:
        i - The input data stream
        Throws:
        FitsException - if the read was unsuccessful.
      • write

        public void write​(ArrayDataOutput o)
                   throws FitsException
        Description copied from class: Data
        Write the data -- including any buffering needed
        Specified by:
        write in interface FitsElement
        Specified by:
        write in class Data
        Parameters:
        o - The output stream on which to write the data.
        Throws:
        FitsException - if the write was unsuccessful.