FileInfo, PosixFileInfopublic 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()
PosixFileInfogetMode in interface PosixFileInfopublic FileInfo.Type getType()
FileInfopublic int getUid()
PosixFileInfogetUid in interface PosixFileInfopublic int getGid()
PosixFileInfogetGid in interface PosixFileInfopublic long getSize()
FileInfopublic long getBlockSize()
PosixFileInfogetBlockSize in interface PosixFileInfopublic long getLastModifiedTime()
PosixFileInfogetLastModifiedTime in interface FileInfogetLastModifiedTime in interface PosixFileInfo