Package uk.ac.starlink.datanode.factory
Class TamFitsUtil
- java.lang.Object
-
- uk.ac.starlink.datanode.factory.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 ifNodeUtil.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.
-
-
-
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
-
-