com.microsoft.tfs.core.util
Class SpecialFolders

java.lang.Object
  extended by com.microsoft.tfs.core.util.SpecialFolders

public class SpecialFolders
extends java.lang.Object

Gets the path to some of the Windows Shell special folders. A path is returned only if the folder exists on disk (the return value is null if the folder does not exist on disk). This is consistent with the .NET Environment.GetFolderPath(SpecialFolder) method behavior.

Thread-safety:
immutable

Constructor Summary
SpecialFolders()
           
 
Method Summary
static java.lang.String getApplicationDataPath()
          Gets the application data folder if it exists on disk (null if it does not).
static java.lang.String getCommonApplicationDataPath()
          Gets the common application data folder if it exists on disk ( null if it does not).
static java.lang.String getLocalApplicationDataPath()
          Gets the local application data folder if it exists on disk ( null if it does not).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecialFolders

public SpecialFolders()
Method Detail

getApplicationDataPath

public static java.lang.String getApplicationDataPath()
Gets the application data folder if it exists on disk (null if it does not).

Represents the file system directory that serves as a common repository for application-specific data for the current, roaming user. A roaming user works on more than one computer on a network. A roaming user's profile is kept on a server on the network and is loaded onto a system when the user logs on.

CSIDL_APPDATA, FOLDERID_RoamingAppData

Returns:
the full path to the roaming application data folder, null if it does not exist on disk and null on non-Windows platforms

getCommonApplicationDataPath

public static java.lang.String getCommonApplicationDataPath()
Gets the common application data folder if it exists on disk ( null if it does not).

Represents the file system directory that serves as a common repository for application-specific data that is used by all users.

Returns:
the full path to the common application data folder, null if it does not exist on disk and null on non-Windows platforms

getLocalApplicationDataPath

public static java.lang.String getLocalApplicationDataPath()
Gets the local application data folder if it exists on disk ( null if it does not).

Represents the file system directory that serves as a common repository for application specific data that is used by the current, non-roaming user.

Returns:
the full path to the local application data folder, null if it does not exist on disk and null on non-Windows platforms


© 2015 Microsoft. All rights reserved.