Package ucar.nc2.grib

Class GribIndexCache


  • public class GribIndexCache
    extends Object
    manages where the grib index files live
    Since:
    12/18/2014
    • Constructor Detail

      • GribIndexCache

        public GribIndexCache()
    • Method Detail

      • setDiskCache2

        public static void setDiskCache2​(DiskCache2 dc)
      • getDiskCache2

        public static DiskCache2 getDiskCache2()
      • getFileOrCache

        public static File getFileOrCache​(String fileLocation)
        Get index file, may be in cache directory, may not exist
        Parameters:
        fileLocation - full path of original index filename
        Returns:
        File, possibly in cache, may or may not exist
      • getExistingFileOrCache

        public static File getExistingFileOrCache​(String fileLocation)
        Looking for an existing file, in cache or not
        Parameters:
        fileLocation - full path of original index filename
        Returns:
        existing file if you can find it, else null