# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Fields | Ctors | Methods | Inherited Methods

# StructStat

`public final class StructStat`
`extends Object` ``

java.lang.Object
↳ | android.system.StructStat

File information returned by `Os#fstat`, `Os#lstat`, and `Os#stat`. Corresponds to C's `struct stat` from `<stat.h>`.

## Summary

### Fields
`public final StructTimespec` | `st_atim` StructTimespec with time of last access.
`public final long` | `st_atime` Seconds part of time of last access.
`public final long` | `st_blksize` A file system-specific preferred I/O block size for this object.
`public final long` | `st_blocks` Number of blocks allocated for this object.
`public final StructTimespec` | `st_ctim` StructTimespec with time of last status change.
`public final long` | `st_ctime` Seconds part of time of last status change
`public final long` | `st_dev` Device ID of device containing file.
`public final int` | `st_gid` Group ID of file.
`public final long` | `st_ino` File serial number (inode).
`public final int` | `st_mode` Mode (permissions) of file.
`public final StructTimespec` | `st_mtim` StructTimespec with time of last modification.
`public final long` | `st_mtime` Seconds part of time of last data modification.
`public final long` | `st_nlink` Number of hard links to the file.
`public final long` | `st_rdev` Device ID (if file is character or block special).
`public final long` | `st_size` For regular files, the file size in bytes.
`public final int` | `st_uid` User ID of file.

### Public constructors
`StructStat(long st_dev, long st_ino, int st_mode, long st_nlink, int st_uid, int st_gid, long st_rdev, long st_size, long st_atime, long st_mtime, long st_ctime, long st_blksize, long st_blocks)` Constructs an instance with the given field values.
`StructStat(long st_dev, long st_ino, int st_mode, long st_nlink, int st_uid, int st_gid, long st_rdev, long st_size, StructTimespec st_atim, StructTimespec st_mtim, StructTimespec st_ctim, long st_blksize, long st_blocks)` Constructs an instance with the given field values.

### Public methods
`String` | `toString()` Returns a string representation of the object.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Fields

### st_atim

    public final StructTimespec st_atim

StructTimespec with time of last access.

### st_atime

    public final long st_atime

Seconds part of time of last access.

### st_blksize

    public final long st_blksize

A 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_blocks

Number of blocks allocated for this object.

### st_ctim

    public final StructTimespec st_ctim

StructTimespec with time of last status change.

### st_ctime

    public final long st_ctime

Seconds part of time of last status change

### st_dev

    public final long st_dev

Device ID of device containing file.

### st_gid

    public final int st_gid

Group ID of file.

### st_ino

    public final long st_ino

File serial number (inode).

### st_mode

    public final int st_mode

Mode (permissions) of file.

### st_mtim

    public final StructTimespec st_mtim

StructTimespec with time of last modification.

### st_mtime

    public final long st_mtime

Seconds part of time of last data modification.

### st_nlink

    public final long st_nlink

Number of hard links to the file.

### st_rdev

    public final long st_rdev

Device ID (if file is character or block special).

### st_size

    public final long st_size

For 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_uid

    public final int st_uid

User ID of file.

## Public constructors

### StructStat

    public StructStat (long st_dev,
                    long st_ino,
                    int st_mode,
                    long st_nlink,
                    int st_uid,
                    int st_gid,
                    long st_rdev,
                    long st_size,
                    long st_atime,
                    long st_mtime,
                    long st_ctime,
                    long st_blksize,
                    long st_blocks)

Constructs an instance with the given field values.

Parameters
`st_dev` | `long`
`st_ino` | `long`
`st_mode` | `int`
`st_nlink` | `long`
`st_uid` | `int`
`st_gid` | `int`
`st_rdev` | `long`
`st_size` | `long`
`st_atime` | `long`
`st_mtime` | `long`
`st_ctime` | `long`
`st_blksize` | `long`
`st_blocks` | `long`

### StructStat

    public StructStat (long st_dev,
                    long st_ino,
                    int st_mode,
                    long st_nlink,
                    int st_uid,
                    int st_gid,
                    long st_rdev,
                    long st_size,
                    StructTimespec st_atim,
                    StructTimespec st_mtim,
                    StructTimespec st_ctim,
                    long st_blksize,
                    long st_blocks)

Constructs an instance with the given field values.

Parameters
`st_dev` | `long`
`st_ino` | `long`
`st_mode` | `int`
`st_nlink` | `long`
`st_uid` | `int`
`st_gid` | `int`
`st_rdev` | `long`
`st_size` | `long`
`st_atim` | `StructTimespec`
`st_mtim` | `StructTimespec`
`st_ctim` | `StructTimespec`
`st_blksize` | `long`
`st_blocks` | `long`

## Public methods

### toString

    public String toString ()

Returns a string representation of the object. In general, the `toString` method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The `toString` method for class `Object` returns a string consisting of the name of the class of which the object is an instance, the at-sign character ``@`', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

>      getClass().getName() + '@' + Integer.toHexString(hashCode())

Returns
`String` | a string representation of the object.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*