-
public class FileUtilsUtilities class for interacting with the assets and the devices storage to load and save DataSet objects from and to .txt files.
-
-
Method Summary
Modifier and Type Method Description static List<Entry>loadEntriesFromFile(String path)Loads a an Array of Entries from a textfile from the sd-card. static List<Entry>loadEntriesFromAssets(AssetManager am, String path)Loads an array of Entries from a textfile from the assets folder. static voidsaveToSdCard(List<Entry> entries, String path)Saves an Array of Entries to the specified location on the sdcard static List<BarEntry>loadBarEntriesFromAssets(AssetManager am, String path)-
-
Method Detail
-
loadEntriesFromFile
static List<Entry> loadEntriesFromFile(String path)
Loads a an Array of Entries from a textfile from the sd-card.
- Parameters:
path- the name of the file on the sd-card (+ path if needed)
-
loadEntriesFromAssets
static List<Entry> loadEntriesFromAssets(AssetManager am, String path)
Loads an array of Entries from a textfile from the assets folder.
- Parameters:
path- the name of the file in the assets folder (+ path if needed)
-
saveToSdCard
static void saveToSdCard(List<Entry> entries, String path)
Saves an Array of Entries to the specified location on the sdcard
-
loadBarEntriesFromAssets
static List<BarEntry> loadBarEntriesFromAssets(AssetManager am, String path)
-
-
-
-