Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Transitioning to version 4.0

There are API changes that you may see when you start using 4.0 with an application that was using 2.2. These are mostly minor and in all cases have equivilent or improved functionality in 4.0. Most of the changes are in implementation classes not often used by simple applications.

java.lang.StringBuffer is replaced by java.lang.StringBuilder, a "drop-in replacement for StringBuffer in places where it was being used by a single thread "

ucar.unidata.data

The following are a quick reference to changes that you are most likely to see. A mostly complete list of all API changes is here.

2.2 4.0
thredds.catalog.DataType ucar.nc2.constants.FeatureType
ucar.nc2.dataset.AxisType ucar.nc2.constants.AxisType

ucar.nc2.dataset.conv._Coordinate

ucar.nc2.constants._Coordinate
ucar.nc2.dataset.NetcdfDataset.makeArray() ucar.ma2.Array.makeArray()
   
   
   
   
   

 


UI

If you had previously set up HttpClient handling like this:

 ucar.nc2.dataset.HttpClientManager.init(provider, clientName);

replace it with:


 HttpClient client = ucar.nc2.util.net.HttpClientManager.init(provider, clientName);
 opendap.dap.DConnect2.setHttpClient(client);
 ucar.unidata.io.http.HTTPRandomAccessFile.setHttpClient(client);

This document is maintained by John Caron and was last updated on May 29, 2008
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690