public abstract class NetcdfLoader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static java.lang.String |
DFLAG_JNAPATH |
static java.lang.String |
ENV_JNAPATH |
protected static java.lang.String |
jnaPath |
protected static java.lang.String |
libName |
protected static DapNetcdf |
nc4 |
| Constructor and Description |
|---|
NetcdfLoader() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isClibraryPresent()
Test if the netcdf C library is present and loaded
|
static DapNetcdf |
load() |
protected static java.lang.String |
nullify(java.lang.String s)
Convert a zero-length string to null
|
static void |
setLibraryAndPath(java.lang.String jna_path,
java.lang.String lib_name)
set the path and name of the netcdf c library.
|
public static final boolean DEBUG
public static final java.lang.String DFLAG_JNAPATH
public static final java.lang.String ENV_JNAPATH
protected static DapNetcdf nc4
protected static java.lang.String jnaPath
protected static java.lang.String libName
public static void setLibraryAndPath(java.lang.String jna_path,
java.lang.String lib_name)
jna_path - path to shared librarieslib_name - library namejava.lang.IllegalArgumentExceptionpublic static DapNetcdf load() throws java.io.IOException
java.io.IOExceptionpublic static boolean isClibraryPresent()
protected static java.lang.String nullify(java.lang.String s)
s - the string to check for length