Package net.rubygrapefruit.platform
Interface PosixFileInfo
-
- All Superinterfaces:
FileInfo
- All Known Implementing Classes:
FileStat
public interface PosixFileInfo extends FileInfo
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 net.rubygrapefruit.platform.FileInfo
FileInfo.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetBlockSize()Returns the optimal block size for reading or writing to this file, in bytes.intgetGid()Returns the GID of this file.longgetLastModifiedTime()Returns 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 Detail
-
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
-
-