Class PlaceFileDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class PlaceFileDataSource extends FilesDataSource
This reads placefile and generates a xgrf file Placefile syntax is defined here: http://www.grlevelx.com/downloads/places.txt
Version:
$Revision: 1.15 $
Author:
IDV development team
  • Constructor Details

    • PlaceFileDataSource

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

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

      public PlaceFileDataSource(DataSourceDescriptor descriptor, List files, Hashtable properties)
      Create a new FrontDataSource
      Parameters:
      descriptor - Descriptor for this DataSource
      files - List of files or urls
      properties - Extra data source properties
  • Method Details

    • 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 p * @throws VisADException VisAD problem
      VisADException - VisAD problem
    • main

      public static void main(String[] args) throws Exception
      test main
      Parameters:
      args - args
      Throws:
      Exception - On badness