public enum FileSystemPathResolver extends Enum<FileSystemPathResolver>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static String |
EXTERNAL |
static String |
MULTIUSER_PERSISTENT |
static String |
MULTIUSER_SHARED_PERSISTENT |
static String |
MULTIUSER_SHARED_TEMPORARY |
static String |
MULTIUSER_TEMPORARY |
static String |
PERSISTENT |
static String |
SHARED_PERSISTENT |
static String |
SHARED_TEMPORARY |
static String |
TEMPORARY |
Modifier and Type | Method and Description |
---|---|
Uri |
getJavaScriptPath(Uri nativePath)
Converts a native path URL to a JavaScript File API path URI.
|
Uri |
getNativePath(Uri jsPath)
Converts a JavaScript File API URL path to a native path URL.
|
Uri |
getNativeRootPath(String jsRootType,
String appIdentifier)
Returns a native path for a specified JS root type and given application.
|
Uri |
getNativeRootPath(Uri nativePath)
Returns a native root path for a specified native path.
|
boolean |
isPathExternal(Uri jsPath)
Returns whether the Javascript path points to external storage on the device
|
static FileSystemPathResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileSystemPathResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileSystemPathResolver INSTANCE
public static final String PERSISTENT
public static final String TEMPORARY
public static final String EXTERNAL
public static final String MULTIUSER_TEMPORARY
public static final String MULTIUSER_PERSISTENT
public static final String SHARED_PERSISTENT
public static final String SHARED_TEMPORARY
public static final String MULTIUSER_SHARED_TEMPORARY
public static final String MULTIUSER_SHARED_PERSISTENT
public static FileSystemPathResolver[] values()
for (FileSystemPathResolver c : FileSystemPathResolver.values()) System.out.println(c);
public static FileSystemPathResolver valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Uri getNativeRootPath(String jsRootType, String appIdentifier) throws Exception
jsRootType
- On of the js root types defined in the class description.appIdentifier
- Web application identifier.Exception
public Uri getNativeRootPath(Uri nativePath) throws Exception
nativePath
- A native URI to be converted.Exception
public Uri getNativePath(Uri jsPath) throws Exception
jsPath
- A JavaScript File API URI to be converted.Exception
public Uri getJavaScriptPath(Uri nativePath) throws Exception
nativePath
- A native URI to be converted.Exception