All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class posix.Stat

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

public class Stat
extends Object

Variable Index

 o RGRP
read for group
 o ROTH
read for other
 o RUSR
read for user
 o RWXG
read, write, execute for group
 o RWXO
read, write, execute for other
 o RWXU
read, write, execute for user
 o SGID
set group id on execution
 o SUID
set user id on execution
 o WGRP
write for group
 o WOTH
write for other
 o WUSR
write for user
 o XGRP
execute for group
 o XOTH
execute for other
 o XUSR
execute for user

Constructor Index

 o Stat(File)
Constructs a Stat from the File object.
 o Stat(OpenFile)
Constructs a Stat from an OpenFile.
 o Stat(String)
Constructs a Stat from the filename.

Method Index

 o getAccessTime()
Returns the time of last access.
 o getDevice()
Returns the ID of device within this file.
 o getGID()
Returns group id of the file's owner.
 o getInode()
Returns the file serial number.
 o getLinkCount()
Returns the number of links to this file.
 o getMode()
Return the permissions mode of the file.
 o getModifiedTime()
Returns the time of last data modification.
 o getSize()
Returns size of the file for regular types.
 o getStatusChange()
Returns the time of last status change.
 o getUID()
Returns user id of the file's owner.
 o initializeConstants()
 o isBlockSpecial()
True if the file is a block special file
 o isCharacterSpecial()
True if the file is a character special file
 o isDirectory()
True if the file is a directory file
 o isFIFO()
True if the file is a directory file
 o isRegularFile()
True if the file is a pipe or FIFO special file
 o stat(String)

Variables

 o RWXU
 public static final int RWXU
read, write, execute for user

 o RUSR
 public static final int RUSR
read for user

 o WUSR
 public static final int WUSR
write for user

 o XUSR
 public static final int XUSR
execute for user

 o RWXG
 public static final int RWXG
read, write, execute for group

 o RGRP
 public static final int RGRP
read for group

 o WGRP
 public static final int WGRP
write for group

 o XGRP
 public static final int XGRP
execute for group

 o RWXO
 public static final int RWXO
read, write, execute for other

 o ROTH
 public static final int ROTH
read for other

 o WOTH
 public static final int WOTH
write for other

 o XOTH
 public static final int XOTH
execute for other

 o SUID
 public static final int SUID
set user id on execution

 o SGID
 public static final int SGID
set group id on execution

Constructors

 o Stat
 public Stat(String path) throws PosixException
Constructs a Stat from the filename.

Throws: PosixException
EACCES, ENAMETOOLONG, ENOENT, ENOTDIR.
 o Stat
 public Stat(File file) throws PosixException
Constructs a Stat from the File object.

Throws: PosixException
EACCES, ENAMETOOLONG, ENOENT, ENOTDIR.
 o Stat
 public Stat(OpenFile fd) throws PosixException
Constructs a Stat from an OpenFile.

Throws: PosixException
EACCES, ENAMETOOLONG, ENOENT, ENOTDIR, EBADF.

Methods

 o initializeConstants
 protected static native void initializeConstants()
 o stat
 protected native int stat(String path)
 o isDirectory
 public native boolean isDirectory()
True if the file is a directory file

 o isCharacterSpecial
 public native boolean isCharacterSpecial()
True if the file is a character special file

 o isBlockSpecial
 public native boolean isBlockSpecial()
True if the file is a block special file

 o isRegularFile
 public native boolean isRegularFile()
True if the file is a pipe or FIFO special file

 o isFIFO
 public native boolean isFIFO()
True if the file is a directory file

 o getMode
 public int getMode()
Return the permissions mode of the file. Posix type: mode_t, typically u_short

See Also:
File
 o getInode
 public long getInode()
Returns the file serial number. Posix type: ino_t, typically unsigned long

 o getDevice
 public int getDevice()
Returns the ID of device within this file. Posix type: dev_t, typically unsigned short

 o getLinkCount
 public int getLinkCount()
Returns the number of links to this file. Posix type: nlink_t, typically unsigned short

 o getUID
 public int getUID()
Returns user id of the file's owner. Posix type: uid_t, typically unsigned int

 o getGID
 public int getGID()
Returns group id of the file's owner. Posix type: gid_t, typically unsigned int

 o getSize
 public long getSize()
Returns size of the file for regular types. For other file types, the size of the file is unspecified. Posix type: off_t, typically long

 o getAccessTime
 public long getAccessTime()
Returns the time of last access. Posix type: time_t, typically long

 o getModifiedTime
 public long getModifiedTime()
Returns the time of last data modification. Posix type: time_t, typically long

 o getStatusChange
 public long getStatusChange()
Returns the time of last status change. Posix type: time_t, typically long


All Packages  Class Hierarchy  This Package  Previous  Next  Index