Package uk.m0nom.adifproc.activity
Class ActivityReader
java.lang.Object
uk.m0nom.adifproc.activity.ActivityReader
- Direct Known Subclasses:
CsvActivityReader,IotaJsonReader
Abstract class providing common methods for reading loading an activity and reading coordinate values
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ActivityDatabaseread(InputStream inputStream) protected GlobalCoords3DreadCoords(org.apache.commons.csv.CSVRecord record, String latColName, String longColName) Read lat/long from CSV file and convert to GlobalCoordinates.
-
Field Details
-
type
-
sourceFile
-
-
Constructor Details
-
ActivityReader
-
-
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 readlatColName- name of Latitude column in CSV recordlongColName- name of Longitude column in CSV record- Returns:
- Global Coordinate for lat/long, or null if neither specified
-
read
- Throws:
IOException
-