enum FileAttributes extends Enum<FileAttributes>
Modifier and Type | Method and Description |
---|---|
(package private) static long |
getCreationTime(File file) |
(package private) static long |
getLastAccessedTime(File file) |
(package private) static long |
getLastModifiedTime(File file) |
(package private) static boolean |
isDirectory(File file) |
(package private) static boolean |
isOther(File file) |
(package private) static boolean |
isRegularFile(File file) |
(package private) static boolean |
isSymbolicLink(File file) |
static FileAttributes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileAttributes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static FileAttributes[] values()
for (FileAttributes c : FileAttributes.values()) System.out.println(c);
public static FileAttributes 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 nullstatic long getLastModifiedTime(File file)
static long getCreationTime(File file)
static long getLastAccessedTime(File file)
static boolean isDirectory(File file)
static boolean isRegularFile(File file)
static boolean isSymbolicLink(File file)
Copyright © 2024. All rights reserved.