public class UAVCsvReader
extends java.lang.Object
从文件中读取出参数记录集
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
UAVCsvReader.OnReadUpdateListener
读取更新监听
|
| 构造器和说明 |
|---|
UAVCsvReader(android.content.Context context,
UAVCsvReader.OnReadUpdateListener onReadUpdateListener)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<Location> |
getPoints() |
java.util.List<Location> |
getPoints(int step)
获取csv中的地理坐标点
|
java.util.ArrayList<UAVRecordParameter> |
readFileFromAssets(java.lang.String fileName)
从\assets目录下根据文件名读取文件
|
java.util.ArrayList<UAVRecordParameter> |
readFileFromSdCard(java.lang.String filePath)
从sd卡读取csv文件
|
public UAVCsvReader(android.content.Context context,
UAVCsvReader.OnReadUpdateListener onReadUpdateListener)
context - 上下文onReadUpdateListener - 监听public java.util.List<Location> getPoints(int step)
step - 步长,间隔个数public java.util.List<Location> getPoints()
public java.util.ArrayList<UAVRecordParameter> readFileFromAssets(java.lang.String fileName) throws java.io.IOException
fileName - 文件名java.io.IOExceptionpublic java.util.ArrayList<UAVRecordParameter> readFileFromSdCard(java.lang.String filePath) throws java.io.IOException
filePath - 文件路径java.io.IOException