Class TextDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class TextDataSource extends FilesDataSource
A class for handling text (and HTML) classes
Version:
$Revision: 1.28 $
Author:
IDV development team
  • Constructor Details

    • TextDataSource

      public TextDataSource()
      Default bean constructor; does nothing.
    • TextDataSource

      public TextDataSource(DataSourceDescriptor descriptor, String filename, Hashtable properties)
      Create a new TextDataSource
      Parameters:
      descriptor - descriptor for this DataSource
      filename - name of the file (or URL)
      properties - extra data source properties
  • Method Details

    • canSaveDataToLocalDisk

      public boolean canSaveDataToLocalDisk()
      Is this data source capable of saving its data to local disk
      Specified by:
      canSaveDataToLocalDisk in interface DataSource
      Overrides:
      canSaveDataToLocalDisk in class DataSourceImpl
      Returns:
      Can save to local disk
    • initAfterUnpersistence

      public void initAfterUnpersistence()
      Initialize if being unpersisted.
      Specified by:
      initAfterUnpersistence in interface DataSource
      Overrides:
      initAfterUnpersistence in class FilesDataSource
    • makeDerivedDataChoices

      protected void makeDerivedDataChoices(List dataChoices)
      Override base class method to not make any derived data choices
      Overrides:
      makeDerivedDataChoices in class DataSourceImpl
      Parameters:
      dataChoices - Initial data choices
    • doMakeDataChoices

      protected void doMakeDataChoices()
      Make the data choices associated 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.Data object
      Throws:
      RemoteException - Java RMI problem
      VisADException - VisAD problem