ucar.grib
Class GribIndexName

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

public class GribIndexName
extends Object


Field Summary
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 Summary
GribIndexName()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentSuffix

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

See Also:
Constant Field Values

oldSuffix

public static final 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 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 String getCurrentSuffix(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 String get(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 String getIndex(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 String getCache()

setCache

public static void setCache(String cache)


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.