Interface PosixFileInfo
- All Superinterfaces:
FileInfo
- All Known Implementing Classes:
FileStat
Provides some information about a file on a Posix file system. This is a snapshot and does not change.
A snapshot be fetched using PosixFiles.stat(java.io.File).
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileInfo
FileInfo.Type -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the optimal block size for reading or writing to this file, in bytes.intgetGid()Returns the GID of this file.longReturns the last modification time of this file, in ms since epoch.intgetMode()Returns the mode, or permissions, of this file.intgetUid()Returns the UID of this file.
-
Method Details
-
getMode
int getMode()Returns the mode, or permissions, of this file. -
getUid
int getUid()Returns the UID of this file. -
getGid
int getGid()Returns the GID of this file. -
getBlockSize
long getBlockSize()Returns the optimal block size for reading or writing to this file, in bytes. -
getLastModifiedTime
long getLastModifiedTime()Returns the last modification time of this file, in ms since epoch.- Specified by:
getLastModifiedTimein interfaceFileInfo
-