net.sf.jfilesync.engine
Class FilePermissions

java.lang.Object
  extended by net.sf.jfilesync.engine.FilePermissions

public class FilePermissions
extends java.lang.Object


Field Summary
private  int permissions
           
static int S_IFBLK
           
static int S_IFCHR
           
static int S_IFDIR
           
static int S_IFIFO
           
static int S_IFLNK
           
static int S_IFREG
           
static int S_IFSOCK
          S_IFMT 0170000 bitmask for the file type bitfields S_IFSOCK 0140000 socket S_IFLNK 0120000 symbolic link S_IFREG 0100000 regular file S_IFBLK 0060000 block device S_IFDIR 0040000 directory S_IFCHR 0020000 character device S_IFIFO 0010000 fifo S_ISUID 0004000 set UID bit S_ISGID 0002000 set GID bit (see below) S_ISVTX 0001000 sticky bit (see below) S_IRWXU 00700 mask for file owner permissions S_IRUSR 00400 owner has read permission S_IWUSR 00200 owner has write permission S_IXUSR 00100 owner has execute permission S_IRWXG 00070 mask for group permissions S_IRGRP 00040 group has read permission S_IWGRP 00020 group has write permission S_IXGRP 00010 group has execute permission S_IRWXO 00007 mask for permissions for others (not in group) S_IROTH 00004 others have read permission S_IWOTH 00002 others have write permisson S_IXOTH 00001 others have execute permission
static int S_IRGRP
           
static int S_IROTH
           
static int S_IRUSR
           
static int S_ISGID
           
static int S_ISUID
           
static int S_ISVTX
           
static int S_IWGRP
           
static int S_IWOTH
           
static int S_IWUSR
           
static int S_IXGRP
           
static int S_IXOTH
           
static int S_IXUSR
           
 
Constructor Summary
FilePermissions(int permissions)
           
 
Method Summary
 java.lang.String getOctalString()
           
 int getValue()
           
 void setValue(int v)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

S_IFSOCK

public static final int S_IFSOCK
S_IFMT 0170000 bitmask for the file type bitfields S_IFSOCK 0140000 socket S_IFLNK 0120000 symbolic link S_IFREG 0100000 regular file S_IFBLK 0060000 block device S_IFDIR 0040000 directory S_IFCHR 0020000 character device S_IFIFO 0010000 fifo S_ISUID 0004000 set UID bit S_ISGID 0002000 set GID bit (see below) S_ISVTX 0001000 sticky bit (see below) S_IRWXU 00700 mask for file owner permissions S_IRUSR 00400 owner has read permission S_IWUSR 00200 owner has write permission S_IXUSR 00100 owner has execute permission S_IRWXG 00070 mask for group permissions S_IRGRP 00040 group has read permission S_IWGRP 00020 group has write permission S_IXGRP 00010 group has execute permission S_IRWXO 00007 mask for permissions for others (not in group) S_IROTH 00004 others have read permission S_IWOTH 00002 others have write permisson S_IXOTH 00001 others have execute permission

See Also:
Constant Field Values

S_IFLNK

public static final int S_IFLNK
See Also:
Constant Field Values

S_IFREG

public static final int S_IFREG
See Also:
Constant Field Values

S_IFBLK

public static final int S_IFBLK
See Also:
Constant Field Values

S_IFDIR

public static final int S_IFDIR
See Also:
Constant Field Values

S_IFCHR

public static final int S_IFCHR
See Also:
Constant Field Values

S_IFIFO

public static final int S_IFIFO
See Also:
Constant Field Values

S_ISUID

public static final int S_ISUID
See Also:
Constant Field Values

S_ISGID

public static final int S_ISGID
See Also:
Constant Field Values

S_ISVTX

public static final int S_ISVTX
See Also:
Constant Field Values

S_IRUSR

public static final int S_IRUSR
See Also:
Constant Field Values

S_IWUSR

public static final int S_IWUSR
See Also:
Constant Field Values

S_IXUSR

public static final int S_IXUSR
See Also:
Constant Field Values

S_IRGRP

public static final int S_IRGRP
See Also:
Constant Field Values

S_IWGRP

public static final int S_IWGRP
See Also:
Constant Field Values

S_IXGRP

public static final int S_IXGRP
See Also:
Constant Field Values

S_IROTH

public static final int S_IROTH
See Also:
Constant Field Values

S_IWOTH

public static final int S_IWOTH
See Also:
Constant Field Values

S_IXOTH

public static final int S_IXOTH
See Also:
Constant Field Values

permissions

private int permissions
Constructor Detail

FilePermissions

public FilePermissions(int permissions)
Method Detail

getValue

public int getValue()

setValue

public void setValue(int v)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOctalString

public java.lang.String getOctalString()