Class FileStat
- java.lang.Object
-
- net.rubygrapefruit.platform.internal.FileStat
-
- All Implemented Interfaces:
FileInfo,PosixFileInfo
public class FileStat extends Object implements PosixFileInfo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.rubygrapefruit.platform.FileInfo
FileInfo.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetails(int type, int mode, int uid, int gid, long size, long modificationTime, int blockSize)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.longgetSize()Returns the size of this file, in bytes.FileInfo.TypegetType()Returns the type of this file.intgetUid()Returns the UID of this file.StringtoString()
-
-
-
Constructor Detail
-
FileStat
public FileStat(String path)
-
-
Method Detail
-
details
public void details(int type, int mode, int uid, int gid, long size, long modificationTime, int blockSize)
-
getMode
public int getMode()
Description copied from interface:PosixFileInfoReturns the mode, or permissions, of this file.- Specified by:
getModein interfacePosixFileInfo
-
getType
public FileInfo.Type 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
public long getSize()
Description copied from interface:FileInfoReturns the size of this file, in bytes. Returns 0 when this file is not a regular file.
-
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
-
-