uk.ac.starlink.ast
Class AstPackage

java.lang.Object
  extended by uk.ac.starlink.ast.AstPackage

public class AstPackage
extends Object

Provides information about the status of the JNIAST package. This class offers a method which can be invoked to determine whether the classes in the uk.ac.starlink.ast package are available for use.

Author:
Mark Taylor (Starlink)

Method Summary
static boolean isAvailable()
          Indicates whether the JNIAST package is available or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAvailable

public static boolean isAvailable()
Indicates whether the JNIAST package is available or not. This will return true if the JNIAST classes can be used, but false if the requisite native code is not available (the shared library is not on the java.library.path). If the classes are not available, then the first time it is invoked it will write a warning to that effect via the logger.

Returns:
true iff the uk.ac.starlink.ast.* classes are available


Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.