Re: [netcdf-java] Multiple IOSP returning true for the isValidFile method

Hi Antonio:

On 12/9/2010 5:32 PM, "Antonio S. Cofiño" wrote:
Dear All,

As it's been described in:
http://www.unidata.ucar.edu/software/netcdf-java/tutorial/IOSPoverview.html

if I want to develop a IOSP for the netcdf-java library My java class have to implement the "ucar.nc2.IOServiceProvider" interface. Then if the file passed to the isValidFile is recognized by my IOSP should return a true value.

The question is; what happens if the file is a valid file for multiple IOSP? which IOSP has the maximum priority? the last IOSP added to the list of IOSP? there ar anyway to establish priority order for IOSP?

User loaded IOSPs are kept in LIFO order. First one that claims the file gets it.


Thank you and regards

Antonio

P.S: I'm developing a BUFR IOSP for a special case of Grid data coded as BUFR, but I expect to use the current BUFR IOSP for point data.

Good luck!



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: