|
|
|||
|
||||
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() |
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 | ||||||
|
||||||