Class AddeTextDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class AddeTextDataSource extends DataSourceImpl
Class for data sources of ADDE text data. These may be generic files or weather bulletins
Version:
$Revision: 1.21 $
Author:
IDV development team
  • Constructor Details

    • AddeTextDataSource

      public AddeTextDataSource()
      Default bean constructor for persistence; does nothing.
    • AddeTextDataSource

      public AddeTextDataSource(DataSourceDescriptor descriptor, String filename, Hashtable properties)
      Create a new AddeTextDataSource
      Parameters:
      descriptor - descriptor for this source
      filename - ADDE URL
      properties - extra properties for this source
  • Method Details

    • doMakeDataChoices

      protected void doMakeDataChoices()
      Make the data choices assoicated with this source.
      Overrides:
      doMakeDataChoices in class DataSourceImpl
    • getDataInner

      protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException
      Actually get the data identified by the given DataChoce. The default is to call the getDataInner that does not take the requestProperties. This allows other, non unidata.data DataSource-s (that follow the old API) to work.
      Overrides:
      getDataInner in class DataSourceImpl
      Parameters:
      dataChoice - The data choice that identifies the requested data.
      category - The data category of the request.
      dataSelection - Identifies any subsetting of the data.
      requestProperties - Hashtable that holds any detailed request properties.
      Returns:
      The visad.Text object
      Throws:
      RemoteException - Java RMI problem
      VisADException - VisAD problem