public class TypedDatasetFactory
extends java.lang.Object
Constructor and Description |
---|
TypedDatasetFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TypedDataset |
open(FeatureType datatype,
NetcdfDataset ncd,
CancelTask task,
java.lang.StringBuilder errlog)
Deprecated.
Open a dataset as a TypedDataset.
|
static TypedDataset |
open(FeatureType datatype,
java.lang.String location,
CancelTask task,
java.lang.StringBuilder errlog)
Deprecated.
Open a dataset as a TypedDataset.
|
static void |
registerFactory(FeatureType datatype,
java.lang.Class c)
Deprecated.
Register a class that implements a TypedDatasetFactoryIF.
|
static void |
registerFactory(FeatureType datatype,
java.lang.String className)
Deprecated.
Register a class that implements a TypedDatasetFactoryIF.
|
public static void registerFactory(FeatureType datatype, java.lang.String className) throws java.lang.ClassNotFoundException
className
- name of class that implements TypedDatasetFactoryIF.datatype
- scientific data typejava.lang.ClassNotFoundException
- if loading errorpublic static void registerFactory(FeatureType datatype, java.lang.Class c)
datatype
- scientific data typec
- class that implements TypedDatasetFactoryIF.public static TypedDataset open(FeatureType datatype, java.lang.String location, CancelTask task, java.lang.StringBuilder errlog) throws java.io.IOException
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 nulljava.io.IOException
- on io errorpublic static TypedDataset open(FeatureType datatype, NetcdfDataset ncd, CancelTask task, java.lang.StringBuilder errlog) throws java.io.IOException
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 nulljava.io.IOException
- on io error