org.eclipse.rdf4j.common.platform.support

## 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 all Windows' platforms.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `ADUNA_APPLICATION_DATA` name of the app data subdirectory containing all RDF4J files *
    `static String` | `APPLICATION_DATA` name 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 and Description
    `WindowsPlatform()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `dataDirPreserveCase()` Check if case is preserved
    `boolean` | `dataDirReplaceColon()` Check if colon is replaced
    `boolean` | `dataDirReplaceWhitespace()` Check if whitespace is replaced
    `String` | `getCommandShell()` Returns appropriate command shell for the current windows shell.
    `String` | `getName()` Returns the name of this windows platform.
    `File` | `getOSApplicationDataDir()` Returns an application data directory in the "Application Data" user directory of Windows.
    `File` | `getUserHome()` Returns the directory for the current user.
    `boolean` | `isWin2000()` Deprecated.
    `boolean` | `isWin2003()` Deprecated.
    `boolean` | `isWin9x()` Deprecated.
    `boolean` | `isWinNT()` Deprecated.
    `boolean` | `isWinVista()` Deprecated.
    `boolean` | `isWinXP()` Deprecated.
    `boolean` | `warnsWhenOpeningExecutable()` Deprecated.

    - ### Methods inherited from class org.eclipse.rdf4j.common.platform.AbstractPlatform

      `getApplicationDataDir, getApplicationDataDir, getOSApplicationDataDir, getRelativeApplicationDataDir, getRelativeApplicationDataDir`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### APPLICATION_DATA

          public static final String APPLICATION_DATA

      name of the directory containing application data
      See Also:
        Constant Field Values

    - #### ADUNA_APPLICATION_DATA

          public static final String ADUNA_APPLICATION_DATA

      name of the app data subdirectory containing all RDF4J files *
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### WindowsPlatform

          public WindowsPlatform()

  - ### Method Detail

    - #### getName

          public String getName()

      Returns the name of this windows platform.
      Returns:
        name of the platform

    - #### getUserHome

          public File getUserHome()

      Description copied from interface: `Platform`
      Returns the directory for the current user.
      Specified by:
        `getUserHome` in interface `Platform`
      Overrides:
        `getUserHome` in class `AbstractPlatform`
      Returns:
        the current user home directory

    - #### getOSApplicationDataDir

          public File getOSApplicationDataDir()

      Returns an application data directory in the "Application Data" user directory of Windows.
      Returns:
        directory

    - #### warnsWhenOpeningExecutable

          @Deprecated
          public boolean warnsWhenOpeningExecutable()

      Deprecated.
      Warns when the platform is not a Windows 9x, NT or 2000 platform.
      Returns:
        true when not Win9x/NT/2000

    - #### isWin9x

          @Deprecated
          public boolean isWin9x()

      Deprecated.
      Check whether this is windows 9x, or windows NT and higher.
      Returns:
        true when Win9x or higher

    - #### isWinNT

          @Deprecated
          public boolean isWinNT()

      Deprecated.
      Check whether this is an Windows NT environment.
      Returns:
        true when WinNT

    - #### isWin2000

          @Deprecated
          public boolean isWin2000()

      Deprecated.
      Check whether this is an Windows 2000 environment.
      Returns:
        true when Win2000

    - #### isWinXP

          @Deprecated
          public boolean isWinXP()

      Deprecated.
      Check whether this is an Windows XP environment.
      Returns:
        true wen WinXP

    - #### isWin2003

          @Deprecated
          public boolean isWin2003()

      Deprecated.
      Check whether this is an Windows 2003 environment.
      Returns:
        true when Win2003

    - #### isWinVista

          @Deprecated
          public boolean isWinVista()

      Deprecated.
      Check whether this is an Windows Vista environment.
      Returns:
        true when Vista

    - #### getCommandShell

          public String getCommandShell()

      Returns appropriate command shell for the current windows shell.
      Returns:
        name of the command shell

    - #### dataDirPreserveCase

          public boolean dataDirPreserveCase()

      Description copied from interface: `Platform`
      Check if case is preserved
      Returns:
        boolean

    - #### dataDirReplaceWhitespace

          public boolean dataDirReplaceWhitespace()

      Description copied from interface: `Platform`
      Check if whitespace is replaced
      Returns:
        boolean

    - #### dataDirReplaceColon

          public boolean dataDirReplaceColon()

      Description copied from interface: `Platform`
      Check if colon is replaced
      Returns:
        boolean

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.