/** * This can only be used for netcdf-3 files served over HTTP * * @param url HTTP URL location * @throws java.io.IOException if error * @deprecated use NetcdfFile.open( http:location) or NetcdfDataset.openFile( http:location) */ public NetcdfFile(URL url) throws IOException { this.location = url.toString(); ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.http.HTTPRandomAccessFile(location); this.spi = SPFactory.getServiceProvider(); spi.open(raf, this, null); finish(); }
/** * This can only be used for netcdf-3 files served over HTTP * * @param url HTTP URL location * @throws java.io.IOException if error * @deprecated use NetcdfFile.open( http:location) or NetcdfDataset.openFile( http:location) */ public NetcdfFile(URL url) throws IOException { this.location = url.toString(); ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.http.HTTPRandomAccessFile(location); this.spi = SPFactory.getServiceProvider(); spi.open(raf, this, null); finish(); }
/** * This can only be used for netcdf-3 files served over HTTP * * @param url HTTP URL location * @throws java.io.IOException if error * @deprecated use NetcdfFile.open( http:location) or NetcdfDataset.openFile( http:location) */ public NetcdfFile(URL url) throws IOException { this.location = url.toString(); ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.http.HTTPRandomAccessFile(location); this.spi = SPFactory.getServiceProvider(); spi.open(raf, this, null); finish(); }
/** * This is can only be used for local netcdf-3 files. * * @param filename location * @throws java.io.IOException if error * @deprecated use NetcdfFile.open( location) or NetcdfDataset.openFile( location) */ public NetcdfFile(String filename) throws IOException { this.location = filename; ucar.unidata.io.RandomAccessFile raf = ucar.unidata.io.RandomAccessFile.acquire(filename); //ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.MMapRandomAccessFile(filename, "r"); this.spi = SPFactory.getServiceProvider(); spi.open(raf, this, null); finish(); }
/** * This is can only be used for local netcdf-3 files. * * @param filename location * @throws java.io.IOException if error * @deprecated use NetcdfFile.open( location) or NetcdfDataset.openFile( location) */ public NetcdfFile(String filename) throws IOException { this.location = filename; ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.RandomAccessFile(filename, "r"); //ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.MMapRandomAccessFile(filename, "r"); this.spi = SPFactory.getServiceProvider(); spi.open(raf, this, null); finish(); }
/** * This is can only be used for local netcdf-3 files. * * @param filename location * @throws java.io.IOException if error * @deprecated use NetcdfFile.open( location) or NetcdfDataset.openFile( location) */ public NetcdfFile(String filename) throws IOException { this.location = filename; ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.RandomAccessFile(filename, "r"); //ucar.unidata.io.RandomAccessFile raf = new ucar.unidata.io.MMapRandomAccessFile(filename, "r"); this.spi = SPFactory.getServiceProvider(); spi.open(raf, this, null); finish(); }
this.spi.open(raf, this, cancelTask); finish();
this.spi.open(raf, this, cancelTask); finish();
spi.open(raf, this, cancelTask);
this.spi.open(raf, this, cancelTask); finish();
spi.open(raf, this, cancelTask);
spi.open(raf, this, cancelTask);