|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ft.FeatureDatasetFactoryManager
public class FeatureDatasetFactoryManager
Manager of factories for FeatureDatasets. This supercedes ucar.nc2.dt.TypedDatasetFactory
all point fetures are going throuh PointDatasetStandardFactory, which uses TableAna;yzer to deal with specific datasets.
| Constructor Summary | |
|---|---|
FeatureDatasetFactoryManager()
|
|
| Method Summary | |
|---|---|
static boolean |
featureTypeOk(FeatureType want,
FeatureType facType)
Determine if factory type matches wanted feature type. |
static FeatureDataset |
open(FeatureType datatype,
java.lang.String location,
CancelTask task,
java.util.Formatter errlog)
Open a dataset as a FeatureDataset. |
static void |
registerFactory(FeatureType datatype,
java.lang.Class c)
Register a class that implements a FeatureDatasetFactory. |
static void |
registerFactory(FeatureType datatype,
java.lang.String className)
Register a class that implements a FeatureDatasetFactory. |
static FeatureDataset |
wrap(FeatureType featureType,
NetcdfDataset ncd,
CancelTask task,
java.util.Formatter errlog)
Wrap a NetcdfDataset as a FeatureDataset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureDatasetFactoryManager()
| Method Detail |
|---|
public static void registerFactory(FeatureType datatype,
java.lang.String className)
throws java.lang.ClassNotFoundException
className - name of class that implements FeatureDatasetFactory.datatype - scientific data type
java.lang.ClassNotFoundException - if loading error
public static void registerFactory(FeatureType datatype,
java.lang.Class c)
datatype - scientific data typec - class that implements FeatureDatasetFactory.
public static FeatureDataset open(FeatureType datatype,
java.lang.String location,
CancelTask task,
java.util.Formatter errlog)
throws java.io.IOException
datatype - open this kind of FeatureDataset; may be null, which means search all factories.
If datatype is not null, only return correct FeatureDataset (eg PointFeatureDataset for DataType.POINT).location - URL or file location of the datasettask - user may cancelerrlog - place errors here, may not be null
java.io.IOException - on io error
public static FeatureDataset wrap(FeatureType featureType,
NetcdfDataset ncd,
CancelTask task,
java.util.Formatter errlog)
throws java.io.IOException
featureType - open this kind of FeatureDataset; may be null, which means search all factories.
If datatype is not null, only return FeatureDataset with objects of that typencd - the NetcdfDataset to wrap as a FeatureDatasettask - user may cancelerrlog - place errors here, may not be null
java.io.IOException - on io error
public static boolean featureTypeOk(FeatureType want,
FeatureType facType)
want - looking for this FeatureTypefacType - factory is of this type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||