public abstract class PlatformBase extends Object implements Platform
| Modifier and Type | Field and Description |
|---|---|
protected String |
colonReplacement |
protected org.slf4j.Logger |
logger |
protected String |
separatorReplacement |
protected String |
whitespaceReplacement |
APPDATA_BASEDIR_PROPERTY, OLD_DATADIR_PROPERTY| Constructor and Description |
|---|
PlatformBase() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
String |
getRelativeApplicationDataDir(String applicationName,
boolean caseSensitive,
boolean replaceWhitespace,
boolean replaceColon) |
File |
getUserHome()
Returns the directory for the current user.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdataDirPreserveCase, dataDirReplaceColon, dataDirReplaceWhitespace, getName, getOSApplicationDataDirprotected final org.slf4j.Logger logger
protected String whitespaceReplacement
protected String separatorReplacement
protected String colonReplacement
public File getUserHome()
PlatformgetUserHome in interface Platformpublic final File getApplicationDataDir()
PlatformgetApplicationDataDir in interface Platformpublic final File getApplicationDataDir(String applicationName)
PlatformgetApplicationDataDir in interface PlatformapplicationName - the name of the application for which to determine the
directoryPlatform.getApplicationDataDir()public final File getOSApplicationDataDir(String applicationName)
PlatformgetOSApplicationDataDir in interface Platformpublic String getRelativeApplicationDataDir(String applicationName)
PlatformgetRelativeApplicationDataDir in interface PlatformapplicationName - the name of the applicationCopyright © 2001–2015 Aduna. All rights reserved.