public static final class Unix.Stat
extends java.lang.Object
stat
structure.Modifier and Type | Method and Description |
---|---|
int |
getBlockSize() |
long |
getDeviceId() |
int |
getGid() |
long |
getInode()
Returns the inode.
|
long |
getLastAccess()
Time when file data last accessed.
|
Unix.Time |
getLastAccessTime()
Time when file data last accessed.
|
long |
getLastModified()
Time when file data last modified.
|
Unix.Time |
getLastModifiedTime()
Time when file data last modified.
|
long |
getLastStatusChange()
Time when file status was last changed (inode data modification).
|
Unix.Time |
getLastStatusChangeTime()
Time when file status was last changed (inode data modification).
|
FileLinkType |
getLinkType() |
long |
getNumberOfBlocks() |
int |
getNumberOfHardLinks()
Returns the number of hard links for the linkName.
|
short |
getPermissions() |
long |
getSize() |
int |
getUid() |
boolean |
isSymbolicLink()
Returns
true , if this link is a symbolic link. |
java.lang.String |
tryGetSymbolicLink()
Get link target of the symbolic link or
null , if this is not a link or the link target has not been read. |
public java.lang.String tryGetSymbolicLink()
null
, if this is not a link or the link target has not been read.public long getDeviceId()
public long getInode()
public short getPermissions()
public FileLinkType getLinkType()
public final boolean isSymbolicLink()
true
, if this link is a symbolic link.public int getNumberOfHardLinks()
IOExceptionUnchecked
- If the information could not be obtained, e.g. because the link does not exist.public int getUid()
public int getGid()
public Unix.Time getLastAccessTime()
Changed by the mknod(2), utimes(2) and read(2) system calls.
Unix.Time
object containing seconds (to nano-second resolution) since the epoch.public long getLastAccess()
Changed by the mknod(2), utimes(2) and read(2) system calls.
public Unix.Time getLastModifiedTime()
Changed by the mknod(2), utimes(2) and write(2) system calls.
Unix.Time
object containing seconds (to nano-second resolution) since the epoch.public long getLastModified()
Changed by the mknod(2), utimes(2) and write(2) system calls.
public Unix.Time getLastStatusChangeTime()
Changed by the chmod(2), chown(2), link(2), mknod(2), rename(2), unlink(2), utimes(2) and write(2) system calls.
Unix.Time
object containing seconds (to nano-second resolution) since the epoch.public long getLastStatusChange()
Changed by the chmod(2), chown(2), link(2), mknod(2), rename(2), unlink(2), utimes(2) and write(2) system calls.
public long getSize()
public long getNumberOfBlocks()
public int getBlockSize()