Class ActivityReader

java.lang.Object
uk.m0nom.adifproc.activity.ActivityReader
Direct Known Subclasses:
CsvActivityReader, IotaJsonReader

public abstract class ActivityReader extends Object
Abstract class providing common methods for reading loading an activity and reading coordinate values
  • Field Details

  • Constructor Details

  • Method Details

    • readCoords

      protected GlobalCoords3D readCoords(org.apache.commons.csv.CSVRecord record, String latColName, String longColName)
      Read lat/long from CSV file and convert to GlobalCoordinates. If neither is specified returns null
      Parameters:
      record - CSVRecord to read
      latColName - name of Latitude column in CSV record
      longColName - name of Longitude column in CSV record
      Returns:
      Global Coordinate for lat/long, or null if neither specified
    • read

      public abstract ActivityDatabase read(InputStream inputStream) throws IOException
      Throws:
      IOException