Class FileStat
java.lang.Object
net.rubygrapefruit.platform.internal.FileStat
- All Implemented Interfaces:
FileInfo, PosixFileInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileInfo
FileInfo.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddetails(int type, int mode, int uid, int gid, long size, long modificationTime, int blockSize) longReturns 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.longgetSize()Returns the size of this file, in bytes.getType()Returns the type of this file.intgetUid()Returns the UID of this file.toString()
-
Constructor Details
-
FileStat
-
-
Method Details
-
details
public void details(int type, int mode, int uid, int gid, long size, long modificationTime, int blockSize) -
toString
-
getMode
public int getMode()Description copied from interface:PosixFileInfoReturns the mode, or permissions, of this file.- Specified by:
getModein interfacePosixFileInfo
-
getType
Description copied from interface:FileInfoReturns the type of this file. -
getUid
public int getUid()Description copied from interface:PosixFileInfoReturns the UID of this file.- Specified by:
getUidin interfacePosixFileInfo
-
getGid
public int getGid()Description copied from interface:PosixFileInfoReturns the GID of this file.- Specified by:
getGidin interfacePosixFileInfo
-
getSize
-
getBlockSize
public long getBlockSize()Description copied from interface:PosixFileInfoReturns the optimal block size for reading or writing to this file, in bytes.- Specified by:
getBlockSizein interfacePosixFileInfo
-
getLastModifiedTime
public long getLastModifiedTime()Description copied from interface:PosixFileInfoReturns the last modification time of this file, in ms since epoch.- Specified by:
getLastModifiedTimein interfaceFileInfo- Specified by:
getLastModifiedTimein interfacePosixFileInfo
-