Uses of Class
java.nio.file.attribute.FileTime
| Package | Description |
|---|---|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
| java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
| java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
|
-
Uses of FileTime in java.nio.file
Methods in java.nio.file that return FileTime Modifier and Type Method Description static FileTimeFiles. getLastModifiedTime(Path path, LinkOption... options)Returns a file's last modified time.Methods in java.nio.file with parameters of type FileTime Modifier and Type Method Description static PathFiles. setLastModifiedTime(Path path, FileTime time)Updates a file's last modified time attribute. -
Uses of FileTime in java.nio.file.attribute
Methods in java.nio.file.attribute that return FileTime Modifier and Type Method Description FileTimeBasicFileAttributes. creationTime()Returns the creation time.static FileTimeFileTime. from(long value, TimeUnit unit)Returns aFileTimerepresenting a value at the given unit of granularity.static FileTimeFileTime. from(Instant instant)Returns aFileTimerepresenting the same point of time value on the time-line as the providedInstantobject.static FileTimeFileTime. fromMillis(long value)Returns aFileTimerepresenting the given value in milliseconds.FileTimeBasicFileAttributes. lastAccessTime()Returns the time of last access.FileTimeBasicFileAttributes. lastModifiedTime()Returns the time of last modification.Methods in java.nio.file.attribute with parameters of type FileTime Modifier and Type Method Description intFileTime. compareTo(FileTime other)Compares the value of twoFileTimeobjects for order.voidBasicFileAttributeView. 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. -
Uses of FileTime in java.util.zip
Methods in java.util.zip that return FileTime Modifier and Type Method Description FileTimeZipEntry. getCreationTime()Returns the creation time of the entry.FileTimeZipEntry. getLastAccessTime()Returns the last access time of the entry.FileTimeZipEntry. getLastModifiedTime()Returns the last modification time of the entry.Methods in java.util.zip with parameters of type FileTime Modifier and Type Method Description ZipEntryZipEntry. setCreationTime(FileTime time)Sets the creation time of the entry.ZipEntryZipEntry. setLastAccessTime(FileTime time)Sets the last access time of the entry.ZipEntryZipEntry. setLastModifiedTime(FileTime time)Sets the last modification time of the entry.