public class FileUtils
extends java.lang.Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<BarEntry> |
loadBarEntriesFromAssets(android.content.res.AssetManager am,
java.lang.String path) |
static java.util.List<Entry> |
loadEntriesFromAssets(android.content.res.AssetManager am,
java.lang.String path)
Loads an array of Entries from a textfile from the assets folder.
|
static java.util.List<Entry> |
loadEntriesFromFile(java.lang.String path)
Loads a an Array of Entries from a textfile from the sd-card.
|
static void |
saveToSdCard(java.util.List<Entry> entries,
java.lang.String path)
Saves an Array of Entries to the specified location on the sdcard
|
public static java.util.List<Entry> loadEntriesFromFile(java.lang.String path)
path - the name of the file on the sd-card (+ path if needed)public static java.util.List<Entry> loadEntriesFromAssets(android.content.res.AssetManager am, java.lang.String path)
am - path - the name of the file in the assets folder (+ path if needed)public static void saveToSdCard(java.util.List<Entry> entries, java.lang.String path)
entries - path - public static java.util.List<BarEntry> loadBarEntriesFromAssets(android.content.res.AssetManager am, java.lang.String path)