Package arc.backend.sdl
Class SdlFiles
java.lang.Object
arc.backend.sdl.SdlFiles
- All Implemented Interfaces:
Files
-
Nested Class Summary
Nested classes/interfaces inherited from interface arc.Files
Files.FileType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(String fileName, Files.FileType type) Returns a handle representing a file or directory.boolean
boolean
-
Field Details
-
externalPath
-
localPath
-
-
Constructor Details
-
SdlFiles
public SdlFiles()
-
-
Method Details
-
get
Description copied from interface:Files
Returns a handle representing a file or directory. -
getExternalStoragePath
- Specified by:
getExternalStoragePath
in interfaceFiles
- Returns:
- the external storage path directory. This is the SD card on Android and the home directory of the current user on the desktop.
-
isExternalStorageAvailable
public boolean isExternalStorageAvailable()- Specified by:
isExternalStorageAvailable
in interfaceFiles
- Returns:
- true if the external storage is ready for file IO. Eg, on Android, the SD card is not available when mounted for use with a PC.
-
getLocalStoragePath
- Specified by:
getLocalStoragePath
in interfaceFiles
- Returns:
- the local storage path directory. This is the private files directory on Android and the directory of the jar on the desktop.
-
isLocalStorageAvailable
public boolean isLocalStorageAvailable()- Specified by:
isLocalStorageAvailable
in interfaceFiles
- Returns:
- true if the local storage is ready for file IO.
-