public class NodeUtil extends Object
Constructor and Description |
---|
NodeUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getNodePath(DataNode node)
Returns the full path of a node, if possible.
|
static boolean |
hasAST()
Indicates whether the JNIAST package is present.
|
static boolean |
hasGUI()
Indicates whether applications within this JVM should be considered
to be running within a graphical context or not.
|
static boolean |
hasHDS()
Indicates whether the JNIHDS package is present.
|
static boolean |
hasJAI()
Indicates whether the Java Advanced Imaging classes are available.
|
static boolean |
hasTAMFITS()
Indicates whether the nom.tam.fits FITS I/O library is available.
|
static boolean |
isASCII(byte[] buf)
Indicates whether the bytes in a given buffer look like ASCII text
or not.
|
static void |
setGUI(boolean hasGUI)
Sets whether applications running within this JVM should be
considered to be running within a GUI or not.
|
static String |
toString(DataNode node)
Returns a short string representation of a DataNode.
|
public static boolean isASCII(byte[] buf)
buf
- the buffer to testpublic static boolean hasHDS()
public static boolean hasAST()
public static boolean hasJAI()
public static boolean hasTAMFITS()
public static boolean hasGUI()
public static void setGUI(boolean hasGUI)
hasGUI
- true iff this JVM ought to be using graphical componentspublic static String getNodePath(DataNode node)
node
- node to traceCopyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.