ucar.nc2.ft.point.standard
Class PointDatasetStandardFactory

java.lang.Object
  extended by ucar.nc2.ft.point.standard.PointDatasetStandardFactory
All Implemented Interfaces:
FeatureDatasetFactory

public class PointDatasetStandardFactory
extends java.lang.Object
implements FeatureDatasetFactory

Standard handler for PointFeatureDataset. Can handle ANY_POINT

Author:
caron

Constructor Summary
PointDatasetStandardFactory()
           
 
Method Summary
 FeatureDatasetFactory copy()
          Copy constructor.
 boolean isMine(FeatureType ftype, NetcdfDataset ds)
          Determine if the factory can open this dataset as an instance of the given feature type
 FeatureDataset open(FeatureType ftype, NetcdfDataset ncd, CancelTask task, java.util.Formatter errlog)
          Open 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

PointDatasetStandardFactory

public PointDatasetStandardFactory()
Method Detail

isMine

public boolean isMine(FeatureType ftype,
                      NetcdfDataset ds)
               throws java.io.IOException
Description copied from interface: FeatureDatasetFactory
Determine if the factory can open this dataset as an instance of the given feature type

Specified by:
isMine in interface FeatureDatasetFactory
Parameters:
ftype - can factory open as this feature type? If null, can factory open as any feature type?
ds - examine this NetcdfDataset.
Returns:
true if this class knows how to create a FeatureDataset out of this NetcdfDataset.
Throws:
java.io.IOException

copy

public FeatureDatasetFactory copy()
Description copied from interface: FeatureDatasetFactory
Copy constructor. since isMine can be expensive, make copy instead of reanalyze

Specified by:
copy in interface FeatureDatasetFactory
Returns:
copy of this factory.

open

public FeatureDataset open(FeatureType ftype,
                           NetcdfDataset ncd,
                           CancelTask task,
                           java.util.Formatter errlog)
                    throws java.io.IOException
Description copied from interface: FeatureDatasetFactory
Open a NetcdfDataset as a FeatureDataset. Should only be called if isMine() return true.

Specified by:
open in interface FeatureDatasetFactory
Parameters:
ftype - open as this feature type. If null, open as any feature type.
ncd - an already opened NetcdfDataset.
task - user may cancel
errlog - place errors here
Returns:
a subclass of FeatureDataset
Throws:
java.io.IOException - on error