com.supermap.ar.areffect
Class ARCsvReader
- java.lang.Object
-
- com.supermap.ar.areffect.ARCsvReader
-
public class ARCsvReader extends java.lang.Object
CSV file readerRead the parameter recordset from a file
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interface
ARCsvReader.OnReadUpdateListener
Read update monitor
-
Constructor Summary
Constructors Constructor and Description ARCsvReader(android.content.Context context, ARCsvReader.OnReadUpdateListener onReadUpdateListener)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Location>
getPoints()
Get Pointsjava.util.List<Location>
getPoints(int step)
Get the geographic coordinate points in CSVjava.util.ArrayList<ARRecordParameter>
readFileFromAssets(java.lang.String fileName)
Read files from \assets by filenamejava.util.ArrayList<ARRecordParameter>
readFileFromSdCard(java.lang.String filePath)
Read CSV files from the SD card
-
-
-
Constructor Detail
-
ARCsvReader
public ARCsvReader(android.content.Context context, ARCsvReader.OnReadUpdateListener onReadUpdateListener)
Constructor- Parameters:
context
- contextonReadUpdateListener
- Listener
-
-
Method Detail
-
getPoints
public java.util.List<Location> getPoints(int step)
Get the geographic coordinate points in CSV- Parameters:
step
- Step number of intervals- Returns:
- Geographic coordinate set (WGS-84 coordinate system)
-
getPoints
public java.util.List<Location> getPoints()
Get Points- Returns:
- Point
-
readFileFromAssets
public java.util.ArrayList<ARRecordParameter> readFileFromAssets(java.lang.String fileName) throws java.io.IOException
Read files from \assets by filename- Parameters:
fileName
- fileName名- Returns:
- Result set
- Throws:
java.io.IOException
-
readFileFromSdCard
public java.util.ArrayList<ARRecordParameter> readFileFromSdCard(java.lang.String filePath) throws java.io.IOException
Read CSV files from the SD card- Parameters:
filePath
- filePath- Returns:
- Result set
- Throws:
java.io.IOException
-
-