|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Platform
The Platform interface defines methods that are expected to differ slightly between operating systems, e.g. methods for opening local files, storing application data, etc.
| Field Summary | |
|---|---|
static String |
APPDATA_BASEDIR_PROPERTY
|
static String |
OLD_DATADIR_PROPERTY
Deprecated. |
| Method Summary | |
|---|---|
boolean |
dataDirPreserveCase()
|
boolean |
dataDirReplaceColon()
|
boolean |
dataDirReplaceWhitespace()
|
File |
getApplicationDataDir()
Returns the directory in which Aduna applications can store their application-dependent data, returns 'getOSApplicationDataDir' unless the system property "aduna.platform.applicationdata.dir" has been set. |
File |
getApplicationDataDir(String applicationName)
Returns the directory in which a specific application can store all its application-dependent data. |
String |
getName()
Get a descriptive name for this platform. |
File |
getOSApplicationDataDir()
Returns the operating system dependend application data dir. |
File |
getOSApplicationDataDir(String applicationName)
Returns the operating system dependend application data dir. |
String |
getRelativeApplicationDataDir(String applicationName)
Get the directory relative to getApplicationDataDir() for the specified application. |
File |
getUserHome()
Returns the directory for the current user. |
| Field Detail |
|---|
static final String APPDATA_BASEDIR_PROPERTY
@Deprecated static final String OLD_DATADIR_PROPERTY
| Method Detail |
|---|
String getName()
File getOSApplicationDataDir()
File getOSApplicationDataDir(String applicationName)
File getUserHome()
File getApplicationDataDir()
File getApplicationDataDir(String applicationName)
applicationName - the name of the application for which to determine the
directory
getApplicationDataDir()String getRelativeApplicationDataDir(String applicationName)
applicationName - the name of the application
boolean dataDirPreserveCase()
boolean dataDirReplaceWhitespace()
boolean dataDirReplaceColon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||