Please note that this documentation is not final and is subject to change.


DRAFT-b102

Uses of Class
java.nio.file.attribute.FileTime

Packages that use FileTime
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
 

Methods in java.nio.file.attribute that return FileTime
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.
 

Methods in java.nio.file.attribute with parameters of type FileTime
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.
 



DRAFT-b102