Class WindowsPlatform
- java.lang.Object
-
- org.eclipse.rdf4j.common.platform.AbstractPlatform
-
- org.eclipse.rdf4j.common.platform.support.WindowsPlatform
-
- All Implemented Interfaces:
Platform
public class WindowsPlatform extends AbstractPlatform
Platform implementation for MS-Windows
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADUNA_APPLICATION_DATAname of the app data subdirectory containing all RDF4J files *static java.lang.StringAPPLICATION_DATAname of the directory containing application data-
Fields inherited from class org.eclipse.rdf4j.common.platform.AbstractPlatform
colonReplacement, logger, separatorReplacement, whitespaceReplacement
-
Fields inherited from interface org.eclipse.rdf4j.common.platform.Platform
APPDATA_BASEDIR_PROPERTY, OLD_DATADIR_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description WindowsPlatform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandataDirPreserveCase()Check if case is preservedbooleandataDirReplaceColon()Check if colon is replacedbooleandataDirReplaceWhitespace()Check if whitespace is replacedjava.lang.StringgetCommandShell()Returns the command shell for MS-Windowsjava.lang.StringgetName()Returns the name of this windows platform.java.io.FilegetOSApplicationDataDir()Returns an application data directory in the "Application Data" user directory of Windows.java.io.FilegetUserHome()Returns the directory for the current user.-
Methods inherited from class org.eclipse.rdf4j.common.platform.AbstractPlatform
getApplicationDataDir, getApplicationDataDir, getOSApplicationDataDir, getRelativeApplicationDataDir, getRelativeApplicationDataDir
-
-
-
-
Field Detail
-
APPLICATION_DATA
public static final java.lang.String APPLICATION_DATA
name of the directory containing application data- See Also:
- Constant Field Values
-
ADUNA_APPLICATION_DATA
public static final java.lang.String ADUNA_APPLICATION_DATA
name of the app data subdirectory containing all RDF4J files *- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of this windows platform.- Returns:
- name of the platform
-
getUserHome
public java.io.File getUserHome()
Description copied from interface:PlatformReturns the directory for the current user.- Specified by:
getUserHomein interfacePlatform- Overrides:
getUserHomein classAbstractPlatform- Returns:
- the current user home directory
-
getOSApplicationDataDir
public java.io.File getOSApplicationDataDir()
Returns an application data directory in the "Application Data" user directory of Windows.- Returns:
- directory
-
getCommandShell
public java.lang.String getCommandShell()
Returns the command shell for MS-Windows- Returns:
- name of the command shell
-
dataDirPreserveCase
public boolean dataDirPreserveCase()
Description copied from interface:PlatformCheck if case is preserved- Returns:
- boolean
-
dataDirReplaceWhitespace
public boolean dataDirReplaceWhitespace()
Description copied from interface:PlatformCheck if whitespace is replaced- Returns:
- boolean
-
dataDirReplaceColon
public boolean dataDirReplaceColon()
Description copied from interface:PlatformCheck if colon is replaced- Returns:
- boolean
-
-