Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Package | Description |
---|---|
java.nio.file.attribute | Interfaces and classes providing access to file and file system attributes. |
Uses of FileTime in java.nio.file.attribute |
---|
Modifier and Type | Method and Description |
---|---|
FileTime |
BasicFileAttributes.creationTime()
Returns the creation time if supported. |
static FileTime |
FileTime.from(long value,
TimeUnit unit)
Returns a FileTime representing a value at the given unit of
granularity. |
static FileTime |
FileTime.fromMillis(long value)
Returns a FileTime representing the given value in milliseconds. |
FileTime |
BasicFileAttributes.lastAccessTime()
Returns the time of last access if supported. |
FileTime |
BasicFileAttributes.lastModifiedTime()
Returns the time of last modification. |
Modifier and Type | Method and Description |
---|---|
int |
FileTime.compareTo(FileTime other)
Compares the value of two FileTime objects for order. |
static void |
Attributes.setLastAccessTime(FileRef file,
FileTime lastAccessTime)
Updates a file's last access time attribute. |
static void |
Attributes.setLastModifiedTime(FileRef file,
FileTime lastModifiedTime)
Updates a file's last modified time attribute. |
void |
BasicFileAttributeView.setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime)
Updates any or all of the file's last modified time, last access time, and create time attributes. |
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.