Package libcore.io
Class StructStat
java.lang.Object
libcore.io.StructStat
public final class StructStat extends Object
File information returned by fstat(2), lstat(2), and stat(2). Corresponds to C's
struct stat from
<stat.h>-
Field Summary
Fields Modifier and Type Field Description longst_atimeTime of last access.longst_blksizeA file system-specific preferred I/O block size for this object.longst_blocksNumber of blocks allocated for this object.longst_ctimeTime of last status change.longst_devDevice ID of device containing file.intst_gidGroup ID of file.longst_inoFile serial number (inode).intst_modeMode (permissions) of file.longst_mtimeTime of last data modification.longst_nlinkNumber of hard links to the file.longst_rdevDevice ID (if file is character or block special).longst_sizeFor regular files, the file size in bytes.intst_uidUser ID of file. -
Method Summary
-
Field Details
-
st_dev
public final long st_devDevice ID of device containing file. -
st_ino
public final long st_inoFile serial number (inode). -
st_mode
public final int st_modeMode (permissions) of file. -
st_nlink
public final long st_nlinkNumber of hard links to the file. -
st_uid
public final int st_uidUser ID of file. -
st_gid
public final int st_gidGroup ID of file. -
st_rdev
public final long st_rdevDevice ID (if file is character or block special). -
st_size
public final long st_sizeFor regular files, the file size in bytes. For symbolic links, the length in bytes of the pathname contained in the symbolic link. For a shared memory object, the length in bytes. For a typed memory object, the length in bytes. For other file types, the use of this field is unspecified. -
st_atime
public final long st_atimeTime of last access. -
st_mtime
public final long st_mtimeTime of last data modification. -
st_ctime
public final long st_ctimeTime of last status change. -
st_blksize
public final long st_blksizeA file system-specific preferred I/O block size for this object. For some file system types, this may vary from file to file. -
st_blocks
public final long st_blocksNumber of blocks allocated for this object.
-