public class FileSystem
extends java.lang.Object
Constructor | Description |
---|---|
FileSystem() |
Modifier and Type | Method | Description |
---|---|---|
static java.io.File |
getClassFolder() |
|
static java.io.File |
getClassFolder(java.lang.Class claz) |
Return the location of this class.
|
static java.io.File |
getCurrentWorkingFolder() |
Return the current working folder.
|
static java.io.File |
getJreFolder() |
Return the folder where Java is installed.
|
static java.io.File |
getTemporaryFolder() |
Return a folder to store temporary files.
|
static java.io.File |
getUserDesktopFolder() |
Return the folder for user's desktop, generally C:\Users\MyName\Desktop on Windows
|
static java.io.File |
getUserDocumentFolder() |
Return the folder for user's documents, generally C:\Users\MyName\Documents on Windows
|
static java.io.File |
getUserDownloadFolder() |
Return the folder for user's download folder, generally C:\Users\MyName\Downloads on Windows
|
static java.io.File |
getUserFolder() |
Return the user folder, generally C:\Users\MyName on Windows
|
static java.io.File |
getUserMusicFolder() |
Return the folder for user's music folder.
|
static java.io.File |
getUserPictureFolder() |
Return the folder for user's pictures folder.
|
public static java.io.File getUserFolder()
public static java.io.File getUserDocumentFolder()
public static java.io.File getUserDesktopFolder()
public static java.io.File getUserDownloadFolder()
public static java.io.File getUserMusicFolder()
public static java.io.File getUserPictureFolder()
public static java.io.File getTemporaryFolder()
public static java.io.File getJreFolder()
public static java.io.File getCurrentWorkingFolder()
public static java.io.File getClassFolder(java.lang.Class claz)
claz
- (default value FileSystem.class)public static java.io.File getClassFolder()