All Packages  This Package  Class Hierarchy  Class Search  Index

Class posix.Stat
java.lang.Object
   |
   +----posix.Stat

  Summary

public class  Stat
     extends java.lang.Object
{
          // Fields 13
     public long atime;
     public int blksize;
     public long blocks;
     public long ctime;
     public int dev;
     public int gid;
     public int ino;
     public int mode;
     public long mtime;
     public int nlink;
     public int rdev;
     public long size;
     public int uid;

          // Constructors 2
     public Stat();
     public Stat(String) throws IOException;

          // Methods 1
     public native int stat(String);
}

File status record for posix systems. The cross-platform features of java.io.File do not cover everything available on posix systems.

Author:
Stuart D. Gathman Copyright 2002 Business Management Systems, Inc


  Cross Reference

Returned By:
File.getStat()





  Fields

· dev

Summary  |  Top
   public int dev

ID of device containing a directory entry for this file.


· ino

Summary  |  Top
   public int ino

File serial number.


· mode

Summary  |  Top
   public int mode

File mode.


· nlink

Summary  |  Top
   public int nlink

Number of links.


· uid

Summary  |  Top
   public int uid

User ID of the file's owner


· gid

Summary  |  Top
   public int gid

Group ID of the file's group


· rdev

Summary  |  Top
   public int rdev

ID of device if special file.


· size

Summary  |  Top
   public long size

File size in bytes.


· atime

Summary  |  Top
   public long atime

Time of last access


· mtime

Summary  |  Top
   public long mtime

Time of last data modification


· ctime

Summary  |  Top
   public long ctime

Time of last file status change


· blksize

Summary  |  Top
   public int blksize

Optimal blocksize for filesystem.


· blocks

Summary  |  Top
   public long blocks

Actual number of blocks allocated.


  Constructors

· Stat

Summary  |  Top

   public Stat() 

Create a blank Stat record.



· Stat

Summary  |  Top
   public Stat(String path)  throws IOException

Create a Stat record for the named file.

Parameter Description
path a posix compliant path name for the file



  Methods

· stat

Summary  |  Top
   public native int stat(String path) 

Fill in fields from a file path.

Returns:
0 on sucess or errno on failure


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7