APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.backends.headless

public final Class HeadlessFiles

extends Object
implements Files
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.Files
Imports
java.io.File, com.badlogic.gdx.Files, com.badlogic.gdx.files.FileHandle

Authors
mzechner, Nathan Sweet

Field Summary

Modifier and TypeField and Description
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FileHandle
absolute(String path)

Implements com.badlogic.gdx.Files.absolute.

Convenience method that returns a FileType#Absolute file handle.

public FileHandle
classpath(String path)

Implements com.badlogic.gdx.Files.classpath.

Convenience method that returns a FileType#Classpath file handle.

public FileHandle
external(String path)

Implements com.badlogic.gdx.Files.external.

Convenience method that returns a FileType#External file handle.

public String
getExternalStoragePath()

Implements com.badlogic.gdx.Files.getExternalStoragePath.

Returns the external storage path directory.

public FileHandle
getFileHandle(String fileName, Files.FileType type)

Implements com.badlogic.gdx.Files.getFileHandle.

Returns a handle representing a file or directory.

public String
getLocalStoragePath()

Implements com.badlogic.gdx.Files.getLocalStoragePath.

Returns the local storage path directory.

public FileHandle
internal(String path)

Implements com.badlogic.gdx.Files.internal.

Convenience method that returns a FileType#Internal file handle.

public boolean
isExternalStorageAvailable()

Implements com.badlogic.gdx.Files.isExternalStorageAvailable.

Returns true if the external storage is ready for file IO.

public boolean
isLocalStorageAvailable()

Implements com.badlogic.gdx.Files.isLocalStorageAvailable.

Returns true if the local storage is ready for file IO.

public FileHandle
local(String path)

Implements com.badlogic.gdx.Files.local.

Convenience method that returns a FileType#Local file handle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

externalPathback to summary
public static final String externalPath
localPathback to summary
public static final String localPath

Constructor Detail

HeadlessFilesback to summary
public HeadlessFiles()

Method Detail

absoluteback to summary
public FileHandle absolute(String path)

Implements com.badlogic.gdx.Files.absolute.

Doc from com.badlogic.gdx.Files.absolute.

Convenience method that returns a FileType#Absolute file handle.

Annotations
@Override
classpathback to summary
public FileHandle classpath(String path)

Implements com.badlogic.gdx.Files.classpath.

Doc from com.badlogic.gdx.Files.classpath.

Convenience method that returns a FileType#Classpath file handle.

Annotations
@Override
externalback to summary
public FileHandle external(String path)

Implements com.badlogic.gdx.Files.external.

Doc from com.badlogic.gdx.Files.external.

Convenience method that returns a FileType#External file handle.

Annotations
@Override
getExternalStoragePathback to summary
public String getExternalStoragePath()

Implements com.badlogic.gdx.Files.getExternalStoragePath.

Doc from com.badlogic.gdx.Files.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.

Annotations
@Override
getFileHandleback to summary
public FileHandle getFileHandle(String fileName, Files.FileType type)

Implements com.badlogic.gdx.Files.getFileHandle.

Doc from com.badlogic.gdx.Files.getFileHandle.

Returns a handle representing a file or directory.

Annotations
@Override
getLocalStoragePathback to summary
public String getLocalStoragePath()

Implements com.badlogic.gdx.Files.getLocalStoragePath.

Doc from com.badlogic.gdx.Files.getLocalStoragePath.

Returns the local storage path directory. This is the private files directory on Android and the directory of the jar on the desktop.

Annotations
@Override
internalback to summary
public FileHandle internal(String path)

Implements com.badlogic.gdx.Files.internal.

Doc from com.badlogic.gdx.Files.internal.

Convenience method that returns a FileType#Internal file handle.

Annotations
@Override
isExternalStorageAvailableback to summary
public boolean isExternalStorageAvailable()

Implements com.badlogic.gdx.Files.isExternalStorageAvailable.

Doc from com.badlogic.gdx.Files.isExternalStorageAvailable.

Returns true if the external storage is ready for file IO.

Annotations
@Override
isLocalStorageAvailableback to summary
public boolean isLocalStorageAvailable()

Implements com.badlogic.gdx.Files.isLocalStorageAvailable.

Doc from com.badlogic.gdx.Files.isLocalStorageAvailable.

Returns true if the local storage is ready for file IO.

Annotations
@Override
localback to summary
public FileHandle local(String path)

Implements com.badlogic.gdx.Files.local.

Doc from com.badlogic.gdx.Files.local.

Convenience method that returns a FileType#Local file handle.

Annotations
@Override