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.Object
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