KickJava   Java API By Example, From Geeks To Geeks.

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


1
2 package ch.ethz.ssh2.sftp;
3
4 /**
5  *
6  * Attribute Flags. The 'valid-attribute-flags' field in
7  * the SFTP ATTRS data type specifies which of the fields are actually present.
8  *
9  * @author Christian Plattner, plattner@inf.ethz.ch
10  * @version $Id: AttribFlags.java,v 1.2 2006/08/02 12:05:00 cplattne Exp $
11  *
12  */

13 public class AttribFlags
14 {
15     /**
16      * Indicates that the 'allocation-size' field is present.
17      */

18     public static final int SSH_FILEXFER_ATTR_SIZE = 0x00000001;
19
20     /** Protocol version 6:
21      * 0x00000002 was used in a previous version of this protocol.
22      * It is now a reserved value and MUST NOT appear in the mask.
23      * Some future version of this protocol may reuse this value.
24      */

25     public static final int SSH_FILEXFER_ATTR_V3_UIDGID = 0x00000002;
26
27     /**
28      * Indicates that the 'permissions' field is present.
29      */

30     public static final int SSH_FILEXFER_ATTR_PERMISSIONS = 0x00000004;
31
32     /**
33      * Indicates that the 'atime' and 'mtime' field are present
34      * (protocol v3).
35      */

36     public static final int SSH_FILEXFER_ATTR_V3_ACMODTIME = 0x00000008;
37
38     /**
39      * Indicates that the 'atime' field is present.
40      */

41     public static final int SSH_FILEXFER_ATTR_ACCESSTIME = 0x00000008;
42
43     /**
44      * Indicates that the 'createtime' field is present.
45      */

46     public static final int SSH_FILEXFER_ATTR_CREATETIME = 0x00000010;
47
48     /**
49      * Indicates that the 'mtime' field is present.
50      */

51     public static final int SSH_FILEXFER_ATTR_MODIFYTIME = 0x00000020;
52
53     /**
54      * Indicates that the 'acl' field is present.
55      */

56     public static final int SSH_FILEXFER_ATTR_ACL = 0x00000040;
57
58     /**
59      * Indicates that the 'owner' and 'group' fields are present.
60      */

61     public static final int SSH_FILEXFER_ATTR_OWNERGROUP = 0x00000080;
62
63     /**
64      * Indicates that additionally to the 'atime', 'createtime',
65      * 'mtime' and 'ctime' fields (if present), there is also
66      * 'atime-nseconds', 'createtime-nseconds', 'mtime-nseconds'
67      * and 'ctime-nseconds'.
68      */

69     public static final int SSH_FILEXFER_ATTR_SUBSECOND_TIMES = 0x00000100;
70
71     /**
72      * Indicates that the 'attrib-bits' and 'attrib-bits-valid'
73      * fields are present.
74      */

75     public static final int SSH_FILEXFER_ATTR_BITS = 0x00000200;
76
77     /**
78      * Indicates that the 'allocation-size' field is present.
79      */

80     public static final int SSH_FILEXFER_ATTR_ALLOCATION_SIZE = 0x00000400;
81
82     /**
83      * Indicates that the 'text-hint' field is present.
84      */

85     public static final int SSH_FILEXFER_ATTR_TEXT_HINT = 0x00000800;
86
87     /**
88      * Indicates that the 'mime-type' field is present.
89      */

90     public static final int SSH_FILEXFER_ATTR_MIME_TYPE = 0x00001000;
91
92     /**
93      * Indicates that the 'link-count' field is present.
94      */

95     public static final int SSH_FILEXFER_ATTR_LINK_COUNT = 0x00002000;
96
97     /**
98      * Indicates that the 'untranslated-name' field is present.
99      */

100     public static final int SSH_FILEXFER_ATTR_UNTRANSLATED_NAME = 0x00004000;
101
102     /**
103      * Indicates that the 'ctime' field is present.
104      */

105     public static final int SSH_FILEXFER_ATTR_CTIME = 0x00008000;
106
107     /**
108      * Indicates that the 'extended-count' field (and probablby some
109      * 'extensions') is present.
110      */

111     public static final int SSH_FILEXFER_ATTR_EXTENDED = 0x80000000;
112 }
113
Popular Tags