| Modifier and Type | Class and Description |
|---|---|
| public static enum | Files.
Indicates how to resolve a path to a file. |
| Modifier and Type | Method and Description |
|---|---|
| public FileHandle | |
| public FileHandle | |
| public FileHandle | |
| public String | |
| public FileHandle | getFileHandle(String path, Files.
Determines how the path is resolved. typeReturns a handle representing a file or directory. |
| public String | |
| public FileHandle | |
| public boolean | |
| public boolean | |
| public FileHandle |
| absolute | back to summary |
|---|---|
| public FileHandle absolute(String path) Convenience method that returns a | |
| classpath | back to summary |
|---|---|
| public FileHandle classpath(String path) Convenience method that returns a | |
| external | back to summary |
|---|---|
| public FileHandle external(String path) Convenience method that returns a | |
| getExternalStoragePath | back to summary |
|---|---|
| public String getExternalStoragePath() Returns the external storage path directory. This is the app external storage on Android and the home directory of the current user on the desktop. | |
| getFileHandle | back to summary |
|---|---|
| public FileHandle getFileHandle(String path, Files. Returns a handle representing a file or directory.
| |
| getLocalStoragePath | back to summary |
|---|---|
| public String getLocalStoragePath() Returns the local storage path directory. This is the private files directory on Android and the directory of the jar on the desktop. | |
| internal | back to summary |
|---|---|
| public FileHandle internal(String path) Convenience method that returns a | |
| isExternalStorageAvailable | back to summary |
|---|---|
| public boolean isExternalStorageAvailable() Returns true if the external storage is ready for file IO. | |
| isLocalStorageAvailable | back to summary |
|---|---|
| public boolean isLocalStorageAvailable() Returns true if the local storage is ready for file IO. | |
| local | back to summary |
|---|---|
| public FileHandle local(String path) Convenience method that returns a | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Files. | Absolute
Path that is a fully qualified, absolute filesystem path. |
| public static final Files. | Classpath
Path relative to the root of the classpath. |
| public static final Files. | External
Path relative to the root of the app external storage on Android and to the home directory of the current user on the desktop. |
| public static final Files. | Internal
Path relative to the asset directory on Android and to the application's root directory on the desktop. |
| public static final Files. | Local
Path relative to the private files directory on Android and to the application's root directory on the desktop. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Files. | |
| public static Files. |
| Absolute | back to summary |
|---|---|
| public static final Files. Path that is a fully qualified, absolute filesystem path. To ensure portability across platforms use absolute files only when absolutely (heh) necessary. | |
| Classpath | back to summary |
|---|---|
| public static final Files. 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 as | |
| External | back to summary |
|---|---|
| public static final Files. Path relative to the root of the app external storage on Android and to the home directory of the current user on the desktop. | |
| Internal | back to summary |
|---|---|
| public static final Files. 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. | |
| Local | back to summary |
|---|---|
| public static final Files. Path relative to the private files directory on Android and to the application's root directory on the desktop. | |
| FileType | back to summary |
|---|---|
| private FileType() | |
| valueOf | back to summary |
|---|---|
| public static Files. | |
| values | back to summary |
|---|---|
| public static Files. | |