Class AMRCTextPointDataSource

All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class AMRCTextPointDataSource extends TextPointDataSource
Created by yuanho on 10/22/14.
  • Field Details

    • amrc1

      public static String amrc1
      _more_
    • amrc2

      public static String amrc2
    • amrc3

      public static String amrc3
  • Constructor Details

    • AMRCTextPointDataSource

      public AMRCTextPointDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties) throws VisADException
      Create a new AMRC 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_
    • AMRCTextPointDataSource

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

      public AMRCTextPointDataSource(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
    • readAMRC1File

      protected String readAMRC1File(List<String> lines) throws Exception
      read AMRC .q10, .q1h, .q3h format point data
      Parameters:
      lines - _more_
      Returns:
      _more_
      Throws:
      Exception - _more_
    • readAMRC2File

      protected String readAMRC2File(List<String> lines) throws Exception
      read AMRC .dat format point data
      Parameters:
      lines - _more_
      Returns:
      _more_
      Throws:
      Exception - _more_
    • readAMRC3File

      protected String readAMRC3File(List<String> lines) throws Exception
      read AMRC .dat format point data
      Parameters:
      lines - _more_
      Returns:
      _more_
      Throws:
      Exception - _more_