Package uk.ac.starlink.datanode.factory
Class TamFitsUtil
java.lang.Object
uk.ac.starlink.datanode.factory.TamFitsUtil
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic DataNode
getFitsDataNode
(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.
-
Constructor Details
-
TamFitsUtil
public TamFitsUtil()
-
-
Method Details
-
getFitsDataNode
public static DataNode getFitsDataNode(File file, byte[] magic, uk.ac.starlink.util.DataSource datsrc) throws IOException, NoSuchDataException Attempts to turn a file into a DataNode based on FITS classes.- Throws:
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
-