[netcdf-java] Questions about IOServiceProvider

John Caron caron at unidata.ucar.edu
Sat Jan 26 13:25:56 MST 2008



Jon Blower wrote:
> Hi,
> 
> I have a couple of questions about IOServiceProviders:
> 
> 1) What happens if two IOServiceProviders return true for
> isValidFile()?  Which provider is used?

the first one thats asked. user-loaded iosps are loaded in front of the system ones, so users can override.


> 2) When does sync() get called?

sync is an attempt to deal with files that change after being opened. most IOSPs cant handle this, but we are curently trying to make it work for netcdf-3 record dimension growth and grib files.

the main case is from NetcdfFileCache, sync is called when a cached file is found. NcML aggregation also calls this. 

> 
> Thanks,
> Jon
> 


More information about the netcdf-java mailing list