Class SerializedDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class SerializedDataSource extends FilesDataSource
This data source knows how to read in a zip file that contains an index xml file and a set of serialized visad.Data objects
Version:
$Revision: 1.2 $ $Date: 2007/08/19 15:54:51 $
Author:
IDV development team
  • Field Details

  • Constructor Details

    • SerializedDataSource

      public SerializedDataSource()
      Dummy constructor so this object can get unpersisted.
    • SerializedDataSource

      public SerializedDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException
      Create a SerializedDataSource from the specification given.
      Parameters:
      descriptor - descriptor for the data source
      source - of file file name (or directory)
      properties - extra properties
      Throws:
      VisADException - some problem occurred creating data
  • Method Details

    • initAfterCreation

      public void initAfterCreation()
      init me
      Specified by:
      initAfterCreation in interface DataSource
      Overrides:
      initAfterCreation in class FilesDataSource
    • doMakeDataChoices

      protected void doMakeDataChoices()
      Create 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
    • doMakeDateTimes

      protected List doMakeDateTimes()
      Create a list of times for this data source. Since shapefiles don't have any times, return an empty List.
      Overrides:
      doMakeDateTimes in class DataSourceImpl
      Returns:
      an empty List