public enum NetcdfFileFormat extends Enum<NetcdfFileFormat>
| Enum Constant and Description |
|---|
CLASSIC |
DATA_64BIT |
HDF4 |
INVALID |
NETCDF4 |
NETCDF4_CLASSIC |
OFFSET_64BIT |
| Modifier and Type | Method and Description |
|---|---|
static NetcdfFileFormat |
findNetcdfFormatType(RandomAccessFile raf)
Figure out what kind of netcdf-related file we have.
|
String |
formatName() |
static boolean |
memequal(byte[] b1,
byte[] b2,
int len) |
static NetcdfFileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetcdfFileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
version() |
public static final NetcdfFileFormat INVALID
public static final NetcdfFileFormat CLASSIC
public static final NetcdfFileFormat OFFSET_64BIT
public static final NetcdfFileFormat NETCDF4
public static final NetcdfFileFormat NETCDF4_CLASSIC
public static final NetcdfFileFormat DATA_64BIT
public static final NetcdfFileFormat HDF4
public static NetcdfFileFormat[] values()
for (NetcdfFileFormat c : NetcdfFileFormat.values()) System.out.println(c);
public static NetcdfFileFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int version()
public String formatName()
public static NetcdfFileFormat findNetcdfFormatType(RandomAccessFile raf) throws IOException
raf - to test typeIOExceptionpublic static boolean memequal(byte[] b1,
byte[] b2,
int len)