Class TamFitsUtil


  • public class TamFitsUtil
    extends java.lang.Object
    Performs operations dependent on the nom.tam.fits library. Methods from this class must ONLY be invoked if NodeUtil.hasTAMFITS() returns true, since nom.tam.fits is not guaranteed to be present at runtime.
    Since:
    9 Mar 2022
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      TamFitsUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DataNode getFitsDataNode​(java.io.File file, byte[] magic, uk.ac.starlink.util.DataSource datsrc)
      Attempts to turn a file into a DataNode based on FITS classes.
      static DataNode getFitsStreamDataNode​(uk.ac.starlink.util.DataSource datsrc)
      Attempts to turn a data source into a DataNode based on FITS classes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TamFitsUtil

        public TamFitsUtil()
    • Method Detail

      • getFitsDataNode

        public static DataNode getFitsDataNode​(java.io.File file,
                                               byte[] magic,
                                               uk.ac.starlink.util.DataSource datsrc)
                                        throws java.io.IOException,
                                               NoSuchDataException
        Attempts to turn a file into a DataNode based on FITS classes.
        Throws:
        java.io.IOException
        NoSuchDataException
      • getFitsStreamDataNode

        public static DataNode getFitsStreamDataNode​(uk.ac.starlink.util.DataSource datsrc)
                                              throws NoSuchDataException
        Attempts to turn a data source into a DataNode based on FITS classes.
        Throws:
        NoSuchDataException