|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Files
Provides standard access to the filesystem, classpath, Android SD card, and Android assets directory.
Nested Class Summary | |
---|---|
static class |
Files.FileType
Indicates how to resolve a path to a file. |
Method Summary | |
---|---|
FileHandle |
absolute(java.lang.String path)
Convenience method that returns a Files.FileType.Absolute file handle. |
FileHandle |
classpath(java.lang.String path)
Convenience method that returns a Files.FileType.Classpath file handle. |
FileHandle |
external(java.lang.String path)
Convenience method that returns a Files.FileType.External file handle. |
java.lang.String |
getExternalStoragePath()
Returns the external storage path directory. |
FileHandle |
getFileHandle(java.lang.String path,
Files.FileType type)
Returns a handle representing a file or directory. |
FileHandle |
internal(java.lang.String path)
Convenience method that returns a Files.FileType.Internal file handle. |
boolean |
isExternalStorageAvailable()
Returns true if the external storage is ready for file IO. |
Method Detail |
---|
FileHandle getFileHandle(java.lang.String path, Files.FileType type)
type
- Determines how the path is resolved.
GdxRuntimeException
- if the type is classpath or internal and the file does not exist.Files.FileType
FileHandle classpath(java.lang.String path)
Files.FileType.Classpath
file handle.
FileHandle internal(java.lang.String path)
Files.FileType.Internal
file handle.
FileHandle external(java.lang.String path)
Files.FileType.External
file handle.
FileHandle absolute(java.lang.String path)
Files.FileType.Absolute
file handle.
java.lang.String getExternalStoragePath()
boolean isExternalStorageAvailable()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |