Class Stat

java.lang.Object
com.aoapps.io.posix.Stat

public class Stat extends Object
One stat call will have all of its output stored in an instance of this class.
Author:
AO Industries, Inc.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Stat
    A stat that represents a non-existent file.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Stat(boolean exists, long device, long inode, long mode, int numberLinks, int uid, int gid, long deviceIdentifier, long size, int blockSize, long blockCount, long accessTime, long modifyTime, long changeTime)
    Creates a new stat given all the values.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines if a file exists, a symbolic link with an invalid destination is still considered to exist.
    long
    Gets the last access to this file.
    long
    Gets the block count for this file.
    int
    Gets the block size for this file.
    long
    Gets the change time of this file.
    long
    Gets the device for this file.
    long
    Gets the device identifier for this file.
    int
    Gets the group ID for this file.
    long
    Gets the inode for this file.
    long
    Gets the permission bits of the mode of this file.
    Gets a String representation of the mode of this file similar to the output of the POSIX ls command.
    long
    Gets the modification time of the file.
    int
    Gets the link count for this file.
    long
    Gets the complete mode of the file, including the bits representing the file type.
    long
    Gets the size of the file.
    int
    Gets the user ID of the file.
    boolean
    Determines if this file represents a block device.
    boolean
    Determines if this file represents a character device.
    boolean
    Determines if this file represents a directory.
    boolean
    Determines if this file represents a FIFO.
    boolean
    Determines if this file represents a regular file.
    boolean
    Determines if this file represents a socket.
    boolean
    Determines if this file represents a sybolic link.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait