KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > ssh2 > sftp > AttribPermissions


1
2 package ch.ethz.ssh2.sftp;
3
4 /**
5  *
6  * Permissions for the 'permissions' field in the SFTP ATTRS data type.
7  * <p>
8  * "<i>The 'permissions' field contains a bit mask specifying file permissions.
9  * These permissions correspond to the st_mode field of the stat structure
10  * defined by POSIX [IEEE.1003-1.1996].</i>"
11  *
12  * @author Christian Plattner, plattner@inf.ethz.ch
13  * @version $Id: AttribPermissions.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
14  *
15  */

16 public class AttribPermissions
17 {
18     /* Octal values! */
19
20     public static final int S_IRUSR = 0400;
21     public static final int S_IWUSR = 0200;
22     public static final int S_IXUSR = 0100;
23     public static final int S_IRGRP = 0040;
24     public static final int S_IWGRP = 0020;
25     public static final int S_IXGRP = 0010;
26     public static final int S_IROTH = 0004;
27     public static final int S_IWOTH = 0002;
28     public static final int S_IXOTH = 0001;
29     public static final int S_ISUID = 04000;
30     public static final int S_ISGID = 02000;
31     public static final int S_ISVTX = 01000;
32 }
33
Popular Tags