本文整理汇总了Java中com.playuav.android.utils.file.FileList类的典型用法代码示例。如果您正苦于以下问题:Java FileList类的具体用法?Java FileList怎么用?Java FileList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FileList类属于com.playuav.android.utils.file包,在下文中一共展示了FileList类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveParametersToFile
import com.playuav.android.utils.file.FileList; //导入依赖的package包/类
public boolean saveParametersToFile(String filename) {
try {
if (!FileManager.isExternalStorageAvailable()) {
return false;
}
if(!filename.endsWith(FileList.PARAM_FILENAME_EXT)){
filename += FileList.PARAM_FILENAME_EXT;
}
FileOutputStream out = FileStream.getParameterFileStream(filename);
writeFirstLine(out);
writeWaypointsLines(out);
out.close();
} catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
示例2: write
import com.playuav.android.utils.file.FileList; //导入依赖的package包/类
public static boolean write(Mission mission, String filename) {
try {
if (!FileManager.isExternalStorageAvailable())
return false;
if (!filename.endsWith(FileList.WAYPOINT_FILENAME_EXT)) {
filename += FileList.WAYPOINT_FILENAME_EXT;
}
final FileOutputStream out = FileStream.getWaypointFileStream(filename);
byte[] missionBytes = ParcelableUtils.marshall(mission);
out.write(missionBytes);
out.close();
} catch (Exception e) {
Log.e(TAG, e.getMessage(), e);
return false;
}
return true;
}
示例3: getFileList
import com.playuav.android.utils.file.FileList; //导入依赖的package包/类
@Override
public String[] getFileList() {
return FileList.getWaypointFileList();
}
示例4: getFileList
import com.playuav.android.utils.file.FileList; //导入依赖的package包/类
@Override
public String[] getFileList() {
return FileList.getParametersFileList();
}
示例5: getFileList
import com.playuav.android.utils.file.FileList; //导入依赖的package包/类
@Override
public String[] getFileList() {
return FileList.getTLogFileList();
}