Class DiamondPointDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class DiamondPointDataSource extends TextPointDataSource
Created by IntelliJ IDEA. User: yuanho Date: Sep 3, 2009 Time: 1:36:15 PM To change this template use File | Settings | File Templates.
  • Field Details

    • diamond1

      public static String diamond1
      _more_
    • diamond1Size

      public static int diamond1Size
      _more_
    • diamond2

      public static String diamond2
      _more_
    • diamond2Size

      public static int diamond2Size
      _more_
  • Constructor Details

    • DiamondPointDataSource

      public DiamondPointDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) throws VisADException
      Create a new Diamond PointDataSource
      Parameters:
      descriptor - data source descriptor
      sources - List of sources of data (filename/URL)
      properties - extra properties for initialization
      Throws:
      VisADException - problem creating the data
      VisADException - _more_
    • DiamondPointDataSource

      public DiamondPointDataSource() throws VisADException
      Construct a DiamondPointDataSource
      Throws:
      VisADException - _more_
    • DiamondPointDataSource

      public DiamondPointDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties) throws VisADException
      Create a new Diamond PointDataSource
      Parameters:
      descriptor - data source descriptor
      source - source of data (filename/URL)
      properties - extra properties for initialization
      Throws:
      VisADException - problem creating the data
  • Method Details

    • getContents

      protected String getContents(String sourceFile, boolean sampleIt) throws Exception
      Read the given source file and return the text contents of it. If the source file is a xls file then convert to csv text
      Overrides:
      getContents in class TextPointDataSource
      Parameters:
      sourceFile - The source file (or url)
      sampleIt - _more_
      Returns:
      The contents
      Throws:
      Exception - On badness
    • readDiamond1File

      protected String readDiamond1File(List<String> lines) throws Exception
      read CMA diamond1 format point data
      Parameters:
      lines - _more_
      Returns:
      _more_
      Throws:
      Exception - _more_
    • readDiamond2File

      protected String readDiamond2File(List<String> lines) throws Exception
      read CMA dismond2 format point data
      Parameters:
      lines - _more_
      Returns:
      _more_
      Throws:
      Exception - _more_