FileInfo
, PosixFileInfo
public class FileStat extends Object implements PosixFileInfo
FileInfo.Type
Modifier and Type | Method | Description |
---|---|---|
void |
details(int type,
int mode,
int uid,
int gid,
long size,
long modificationTime,
int blockSize) |
|
long |
getBlockSize() |
Returns the optimal block size for reading or writing to this file, in bytes.
|
int |
getGid() |
Returns the GID of this file.
|
long |
getLastModifiedTime() |
Returns the last modification time of this file, in ms since epoch.
|
int |
getMode() |
Returns the mode, or permissions, of this file.
|
long |
getSize() |
Returns the size of this file, in bytes.
|
FileInfo.Type |
getType() |
Returns the type of this file.
|
int |
getUid() |
Returns the UID of this file.
|
String |
toString() |
public FileStat(String path)
public void details(int type, int mode, int uid, int gid, long size, long modificationTime, int blockSize)
public int getMode()
PosixFileInfo
getMode
in interface PosixFileInfo
public FileInfo.Type getType()
FileInfo
public int getUid()
PosixFileInfo
getUid
in interface PosixFileInfo
public int getGid()
PosixFileInfo
getGid
in interface PosixFileInfo
public long getSize()
FileInfo
public long getBlockSize()
PosixFileInfo
getBlockSize
in interface PosixFileInfo
public long getLastModifiedTime()
PosixFileInfo
getLastModifiedTime
in interface FileInfo
getLastModifiedTime
in interface PosixFileInfo