ucar.grib
Class GribIndexName

java.lang.Object
  extended by ucar.grib.GribIndexName

public class GribIndexName
extends java.lang.Object


Field Summary
static java.lang.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 java.lang.String currentSuffix
          Current Index suffix, suffix to use by default
static java.lang.String oldSuffix
          Old Index suffix
static boolean updateToCurrent
          Update to current suffix
 
Constructor Summary
GribIndexName()
           
 
Method Summary
static java.lang.String get(java.lang.String gribName)
          Get Index Name, return currentSuffix first, then oldSuffix if it exists.
static java.lang.String getCache()
           
static java.lang.String getCurrentSuffix(java.lang.String gribName)
          Get Index Name, return currentSuffix if no index exist, create name with currentSuffix
static java.lang.String getIndex(java.lang.String gribName, boolean includeOld)
           
static boolean isCreateCurrent()
           
static boolean isUpdateToCurrent()
           
static void setCache(java.lang.String cache)
           
static void setCreateCurrent(boolean createCurrent)
           
static void setUpdateToCurrent(boolean updateToCurrent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentSuffix

public static final java.lang.String currentSuffix
Current Index suffix, suffix to use by default

See Also:
Constant Field Values

oldSuffix

public static final java.lang.String oldSuffix
Old Index suffix

See Also:
Constant Field Values

updateToCurrent

public static boolean updateToCurrent
Update to current suffix


createCurrent

public static boolean createCurrent
Create current index


cache

public static java.lang.String cache
Cache Directory, directory to create index if it can't be create in the same directory as the grib file directory

Constructor Detail

GribIndexName

public GribIndexName()
Method Detail

getCurrentSuffix

public static java.lang.String getCurrentSuffix(java.lang.String gribName)
Get Index Name, return currentSuffix if no index exist, create name with currentSuffix

Parameters:
gribName - used to make Index name
Returns:
gribIndexName String

get

public static java.lang.String get(java.lang.String gribName)
Get Index Name, return currentSuffix first, then oldSuffix if it exists. if no index exist, create name with currentSuffix

Parameters:
gribName - used to make Index name
Returns:
gribIndexName String

getIndex

public static java.lang.String getIndex(java.lang.String gribName,
                                        boolean includeOld)

isUpdateToCurrent

public static boolean isUpdateToCurrent()

setUpdateToCurrent

public static void setUpdateToCurrent(boolean updateToCurrent)

isCreateCurrent

public static boolean isCreateCurrent()

setCreateCurrent

public static void setCreateCurrent(boolean createCurrent)

getCache

public static java.lang.String getCache()

setCache

public static void setCache(java.lang.String cache)