public class FileStat extends java.lang.Object implements PosixFileInfo
FileInfo.Type| Constructor and Description |
|---|
FileStat(java.lang.String path) |
| Modifier and Type | Method and 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.
|
java.lang.String |
toString() |
public void details(int type,
int mode,
int uid,
int gid,
long size,
long modificationTime,
int blockSize)
public java.lang.String toString()
toString in class java.lang.Objectpublic 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