Package com.install4j.api.windows
Enum SpecialFolder
- java.lang.Object
-
- java.lang.Enum<SpecialFolder>
-
- com.install4j.api.windows.SpecialFolder
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SpecialFolder>
public enum SpecialFolder extends java.lang.Enum<SpecialFolder>
Enumeration class for the different special system folders in Microsoft Windows.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPDATA
Identifies the file system directory that serves as a common repository for application-specific data.DESKTOP
Identifies the file system directory used to physically store file objects on the desktop.DOCS
Identifies the file system directory used to physically store a user's common repository of documents.FAVORITES
Identifies the file system directory that serves as a common repository for the user's favorite items.FONTS
Identifies a virtual folder containing fonts.LOCAL_APPDATA
Identifies the file system directory that serves as a data repository for local applications.PROGRAMS
Identifies the file system directory that contains the user's program groups.SENDTO
Identifies the file system directory that contains Send To menu items.STARTMENU
Identifies the file system directory containing Start menu items.STARTUP
Identifies the file system directory that corresponds to the user's Startup program group.TEMPLATES
Identifies the file system directory that serves as a common repository for document templates.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpecialFolder
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SpecialFolder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DESKTOP
public static final SpecialFolder DESKTOP
Identifies the file system directory used to physically store file objects on the desktop. A typical path isC:\Users\<i>user name</i>\Desktop
.
-
STARTMENU
public static final SpecialFolder STARTMENU
Identifies the file system directory containing Start menu items. A typical path isC:\Users\<i>user name</i>\AppData\Roaming\Microsoft\Windows\Start Menu
.
-
PROGRAMS
public static final SpecialFolder PROGRAMS
Identifies the file system directory that contains the user's program groups. The groups are themselves file system directories. A typical path isC:\Users\<i>user name</i>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
.
-
STARTUP
public static final SpecialFolder STARTUP
Identifies the file system directory that corresponds to the user's Startup program group. A typical path isC:\Users\<i>user name</i>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
.
-
SENDTO
public static final SpecialFolder SENDTO
Identifies the file system directory that contains Send To menu items. A typical path isC:\Users\<i>user name</i>\AppData\Roaming\Microsoft\Windows\SendTo
.
-
FONTS
public static final SpecialFolder FONTS
Identifies a virtual folder containing fonts. A typical path isC:\Windows\Fonts
.
-
APPDATA
public static final SpecialFolder APPDATA
Identifies the file system directory that serves as a common repository for application-specific data. A typical path isC:\Users\<i>user name</i>\AppData\Roaming
.
-
DOCS
public static final SpecialFolder DOCS
Identifies the file system directory used to physically store a user's common repository of documents. A typical path isC:\Users\<i>user name</i>\Documents
.
-
TEMPLATES
public static final SpecialFolder TEMPLATES
Identifies the file system directory that serves as a common repository for document templates. A typical path isC:\Users\<i>user name</i>\AppData\Roaming\Microsoft\Windows\Templates
.
-
FAVORITES
public static final SpecialFolder FAVORITES
Identifies the file system directory that serves as a common repository for the user's favorite items. A typical path isC:\Users\<i>user name</i>\Favorites
.
-
LOCAL_APPDATA
public static final SpecialFolder LOCAL_APPDATA
Identifies the file system directory that serves as a data repository for local applications. A typical path isC:\Users\<i>user name</i>\AppData\Local
.
-
-
Method Detail
-
values
public static SpecialFolder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpecialFolder c : SpecialFolder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpecialFolder valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-