public class GribIndexName extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
cache
Cache Directory, directory to create index if it can't be create in the same directory as
the grib file directory
|
static boolean |
createCurrent
Create current index
|
static String |
currentSuffix
Current Index suffix, suffix to use by default
|
static String |
oldSuffix
Old Index suffix
|
static boolean |
updateToCurrent
Update to current suffix
|
| Constructor and Description |
|---|
GribIndexName() |
| Modifier and Type | Method and Description |
|---|---|
static String |
get(String gribName)
Get Index Name, return currentSuffix first, then oldSuffix if it exists.
|
static String |
getCache() |
static String |
getCurrentSuffix(String gribName)
Get Index Name, return currentSuffix
if no index exist, create name with currentSuffix
|
static String |
getIndex(String gribName,
boolean includeOld) |
static boolean |
isCreateCurrent() |
static boolean |
isUpdateToCurrent() |
static void |
setCache(String cache) |
static void |
setCreateCurrent(boolean createCurrent) |
static void |
setUpdateToCurrent(boolean updateToCurrent) |
public static final String currentSuffix
public static final String oldSuffix
public static boolean updateToCurrent
public static boolean createCurrent
public static String cache
public static String getCurrentSuffix(String gribName)
gribName - used to make Index namepublic static String get(String gribName)
gribName - used to make Index namepublic static boolean isUpdateToCurrent()
public static void setUpdateToCurrent(boolean updateToCurrent)
public static boolean isCreateCurrent()
public static void setCreateCurrent(boolean createCurrent)
public static String getCache()
public static void setCache(String cache)
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.