public enum NtfsAttributes extends Enum<NtfsAttributes>
| Enum Constant and Description |
|---|
ARCHIVE
The file is a candidate for backup or removal.
|
DIRECTORY
The file is a directory.
|
HIDDEN
The file is hidden, and thus is not included in ordinary directory listing.
|
NO_SCRUB_DATA
The file or directory is excluded from the data integrity scan.
|
NORMAL
The file is a standard file that has no special attributes.
|
NOT_CONTENT_INDEXED
The file will not be indexed by the operating system's content indexing service.
|
OFFLINE
The file is offline.
|
READ_ONLY
The file is read-only.
|
SYSTEM
The file is a system file.
|
TEMPORARY
The file is temporary.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumSet<NtfsAttributes> |
toAttributes(String ntfsAttributes)
Creates an enum set of
NtfsAttributes from a valid String . |
static String |
toString(EnumSet<NtfsAttributes> ntfsAttributes)
Converts an enum set of
NtfsAttributes to a string. |
static NtfsAttributes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NtfsAttributes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NtfsAttributes READ_ONLY
public static final NtfsAttributes HIDDEN
public static final NtfsAttributes SYSTEM
public static final NtfsAttributes NORMAL
public static final NtfsAttributes DIRECTORY
public static final NtfsAttributes ARCHIVE
public static final NtfsAttributes TEMPORARY
public static final NtfsAttributes OFFLINE
public static final NtfsAttributes NOT_CONTENT_INDEXED
public static final NtfsAttributes NO_SCRUB_DATA
public static NtfsAttributes[] values()
for (NtfsAttributes c : NtfsAttributes.values()) System.out.println(c);
public static NtfsAttributes valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String toString(EnumSet<NtfsAttributes> ntfsAttributes)
NtfsAttributes to a string.String that represents the NTFS Attributes in the correct format delimited by |
which is described at toAttributes(String).public static EnumSet<NtfsAttributes> toAttributes(String ntfsAttributes)
NtfsAttributes from a valid String .ntfsAttributes - A String that represents the ntfs attributes. The string must contain one or
more of the following values delimited by a |. Note they are case sensitive.
ReadOnlyHiddenSystemNoneDirectoryArchiveTemporaryOfflineNotContentIndexedNoScrubDataCopyright © 2021. All Rights Reserved.