class FileAttributes extends Object
Use the singleton INSTANCE
which loads the Java7 version if possible
with support for more file attributes.
Modifier and Type | Field and Description |
---|---|
static FileAttributes |
INSTANCE
Singleton instance loading the Java7 version if possible with support for
more file attributes.
|
Modifier | Constructor and Description |
---|---|
protected |
FileAttributes()
For subclass only, use
INSTANCE instead. |
Modifier and Type | Method and Description |
---|---|
long |
getCreationTime(File file) |
long |
getLastAccessedTime(File file) |
long |
getLastModifiedTime(File file) |
boolean |
isDirectory(File file) |
boolean |
isOther(File file) |
boolean |
isRegularFile(File file) |
boolean |
isSymbolicLink(File file) |
public static final FileAttributes INSTANCE
protected FileAttributes()
INSTANCE
instead.public long getLastModifiedTime(File file)
public long getLastAccessedTime(File file)
public long getCreationTime(File file)
public boolean isDirectory(File file)
public boolean isRegularFile(File file)
public boolean isSymbolicLink(File file)
Copyright © 2016. All rights reserved.