Package arc
Enum Class Files.FileType
- All Implemented Interfaces:
Serializable
,Comparable<Files.FileType>
,Constable
- Enclosing interface:
- Files
Indicates how to resolve a path to a file.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPath that is a fully qualified, absolute filesystem path.Path relative to the root of the classpath.Path relative to the root of the SD card on Android and to the home directory of the current user on the desktop.Path relative to the asset directory on Android and to the application's root directory on the desktop.Path relative to the private files directory on Android and to the application's root directory on the desktop. -
Method Summary
Modifier and TypeMethodDescriptionstatic Files.FileType
Returns the enum constant of this class with the specified name.static Files.FileType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
classpath
Path relative to the root of the classpath. Classpath files are always readonly. Note that classpath files are not compatible with some functionality on Android, such asAudio.newSound(Fi)
andAudio.newMusic(Fi)
. -
internal
Path relative to the asset directory on Android and to the application's root directory on the desktop. On the desktop, if the file is not found, then the classpath is checked. This enables files to be found when using JWS or applets. Internal files are always readonly. -
external
Path relative to the root of the SD card on Android and to the home directory of the current user on the desktop. -
absolute
Path that is a fully qualified, absolute filesystem path. To ensure portability across platforms use absolute files only when absolutely (heh) necessary. -
local
Path relative to the private files directory on Android and to the application's root directory on the desktop.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-