Package com.github.axet.desktop.os.win
Class WindowsFolders
- java.lang.Object
-
- com.github.axet.desktop.os.win.WindowsFolders
-
- All Implemented Interfaces:
DesktopFolders
public class WindowsFolders extends Object implements DesktopFolders
Windows helper. http://stackoverflow.com/questions/585534/what-is-the-best-way-to-find-the- users-home-directory-in-java
-
-
Constructor Summary
Constructors Constructor Description WindowsFolders()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetAppData()Config folder osx: /Users/user/Library/Application Support windows: C:\\Users\\user\\AppData\\Local linux: /home/user/.configFilegetDesktop()Desktop folder osx: /Users/user/Desktop windows: C:\\Users\\user\\Desktop linux: /home/user/DesktopFilegetDocuments()Documents folder osx: /Users/user/Documents windows: C:\\Users\\user\\Documents linux: /home/user/DocumentsFilegetDownloads()Downloads folder osx: /Users/user/Downloads windows: C:\\Users\\user\\Downloads linux: /home/user/DesktopFilegetDownloadsVista()FilegetHome()Home folder osx: /Users/user windows: C:\\Users\\user linux: /home/userFileknowpath(GUID guid)Filepath(int nFolder)
-
-
-
Method Detail
-
getHome
public File getHome()
Description copied from interface:DesktopFoldersHome folder osx: /Users/user windows: C:\\Users\\user linux: /home/user- Specified by:
getHomein interfaceDesktopFolders
-
getDocuments
public File getDocuments()
Description copied from interface:DesktopFoldersDocuments folder osx: /Users/user/Documents windows: C:\\Users\\user\\Documents linux: /home/user/Documents- Specified by:
getDocumentsin interfaceDesktopFolders
-
getDownloads
public File getDownloads()
Description copied from interface:DesktopFoldersDownloads folder osx: /Users/user/Downloads windows: C:\\Users\\user\\Downloads linux: /home/user/Desktop- Specified by:
getDownloadsin interfaceDesktopFolders
-
getDownloadsVista
public File getDownloadsVista()
-
getAppData
public File getAppData()
Description copied from interface:DesktopFoldersConfig folder osx: /Users/user/Library/Application Support windows: C:\\Users\\user\\AppData\\Local linux: /home/user/.config- Specified by:
getAppDatain interfaceDesktopFolders
-
getDesktop
public File getDesktop()
Description copied from interface:DesktopFoldersDesktop folder osx: /Users/user/Desktop windows: C:\\Users\\user\\Desktop linux: /home/user/Desktop- Specified by:
getDesktopin interfaceDesktopFolders
-
path
public File path(int nFolder)
-
-