Class SdlFiles

java.lang.Object
arc.backend.sdl.SdlFiles
All Implemented Interfaces:
Files

public final class SdlFiles extends Object implements Files
  • Field Details

    • externalPath

      public static final String externalPath
    • localPath

      public static final String localPath
  • Constructor Details

    • SdlFiles

      public SdlFiles()
  • Method Details

    • get

      public Fi get(String fileName, Files.FileType type)
      Description copied from interface: Files
      Returns a handle representing a file or directory.
      Specified by:
      get in interface Files
      type - Determines how the path is resolved.
      See Also:
    • getExternalStoragePath

      public String getExternalStoragePath()
      Specified by:
      getExternalStoragePath in interface Files
      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 interface Files
      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

      public String getLocalStoragePath()
      Specified by:
      getLocalStoragePath in interface Files
      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 interface Files
      Returns:
      true if the local storage is ready for file IO.