Package ucar.nc2.dt
Class TypedDatasetFactory
- java.lang.Object
-
- ucar.nc2.dt.TypedDatasetFactory
-
public class TypedDatasetFactory extends Object
Deprecated.Manager of factories for TypedDatasets. NOTE: use ucar.nc2.ft.FeatureDatasetFactoryManager instead, starting with 4.0
-
-
Constructor Summary
Constructors Constructor Description TypedDatasetFactory()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TypedDataset
open(FeatureType datatype, String location, CancelTask task, StringBuilder errlog)
Deprecated.Open a dataset as a TypedDataset.static TypedDataset
open(FeatureType datatype, NetcdfDataset ncd, CancelTask task, StringBuilder errlog)
Deprecated.Open a dataset as a TypedDataset.static void
registerFactory(FeatureType datatype, Class c)
Deprecated.Register a class that implements a TypedDatasetFactoryIF.static void
registerFactory(FeatureType datatype, String className)
Deprecated.Register a class that implements a TypedDatasetFactoryIF.
-
-
-
Method Detail
-
registerFactory
public static void registerFactory(FeatureType datatype, String className) throws ClassNotFoundException
Deprecated.Register a class that implements a TypedDatasetFactoryIF.- Parameters:
className
- name of class that implements TypedDatasetFactoryIF.datatype
- scientific data type- Throws:
ClassNotFoundException
- if loading error
-
registerFactory
public static void registerFactory(FeatureType datatype, Class c)
Deprecated.Register a class that implements a TypedDatasetFactoryIF.- Parameters:
datatype
- scientific data typec
- class that implements TypedDatasetFactoryIF.
-
open
public static TypedDataset open(FeatureType datatype, String location, CancelTask task, StringBuilder errlog) throws IOException
Deprecated.Open a dataset as a TypedDataset.- Parameters:
datatype
- open this kind of Typed Dataset; may be null, which means search all factories. If datatype is not null, only return correct TypedDataset (eg PointObsDataset for DataType.POINT).location
- URL or file location of the datasettask
- user may cancelerrlog
- place errors here, may not be null- Returns:
- a subclass of TypedDataset
- Throws:
IOException
- on io error
-
open
public static TypedDataset open(FeatureType datatype, NetcdfDataset ncd, CancelTask task, StringBuilder errlog) throws IOException
Deprecated.Open a dataset as a TypedDataset.- Parameters:
datatype
- open this kind of Typed Dataset; may be null, which means search all factories. If datatype is not null, only return correct TypedDataset (eg PointObsDataset for DataType.POINT).ncd
- the NetcdfDataset to wrap in a TypedDatasettask
- user may cancelerrlog
- place errors here, may not be null- Returns:
- a subclass of TypedDataset, or null if cant find
- Throws:
IOException
- on io error
-
-