cdm/src/main/java/ucar/nc2/dataset/NetcdfDataset.java
static public NetcdfFile acquireFile(DatasetUrl location, ucar.nc2.util.CancelTask cancelTask) throws IOException {
    return acquireFile(null, null, location, -1, cancelTask, null);
  }
static public NetcdfFile acquireFile(DatasetUrl location, ucar.nc2.util.CancelTask cancelTask) throws IOException {
    return acquireFile(null, null, location, -1, cancelTask, null);
  }
static public NetcdfFile acquireFile ( DatasetUrl location , ucar . nc2 . util . CancelTask cancelTask ) throws IOException { return acquireFile ( null , null , location , - 1 , cancelTask , null ) ; }
Same as openFile, but file is acquired through the File Cache.
You still close with NetcdfFile.close(), the release is handled automatically.
You must first call initNetcdfFileCache() for caching to actually take place.

@param location   location of file, passed to FileFactory
@param cancelTask allow task to be cancelled; may be null.
@return NetcdfFile object
@throws java.io.IOException on read error
Same as openFile but file is acquired through the File Cache . You still close with NetcdfFile . close () the release is handled automatically . You must first call initNetcdfFileCache () for caching to actually take place .