comparison app/src/main/java/ch/ethz/ssh2/sftp/AttribFlags.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/ch/ethz/ssh2/sftp/AttribFlags.java@91a31873c42a
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 /*
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
3 * Please refer to the LICENSE.txt for licensing details.
4 */
5 package ch.ethz.ssh2.sftp;
6
7 /**
8 * Attribute Flags. The 'valid-attribute-flags' field in
9 * the SFTP ATTRS data type specifies which of the fields are actually present.
10 *
11 * @author Christian Plattner
12 * @version 2.50, 03/15/10
13 */
14 public final class AttribFlags {
15
16 private AttribFlags() {
17 }
18
19 /**
20 * Indicates that the 'allocation-size' field is present.
21 */
22 public static final int SSH_FILEXFER_ATTR_SIZE = 0x00000001;
23
24 /**
25 * Protocol version 6:
26 * 0x00000002 was used in a previous version of this protocol.
27 * It is now a reserved value and MUST NOT appear in the mask.
28 * Some future version of this protocol may reuse this value.
29 */
30 public static final int SSH_FILEXFER_ATTR_V3_UIDGID = 0x00000002;
31
32 /**
33 * Indicates that the 'permissions' field is present.
34 */
35 public static final int SSH_FILEXFER_ATTR_PERMISSIONS = 0x00000004;
36
37 /**
38 * Indicates that the 'atime' and 'mtime' field are present
39 * (protocol v3).
40 */
41 public static final int SSH_FILEXFER_ATTR_V3_ACMODTIME = 0x00000008;
42
43 /**
44 * Indicates that the 'atime' field is present.
45 */
46 public static final int SSH_FILEXFER_ATTR_ACCESSTIME = 0x00000008;
47
48 /**
49 * Indicates that the 'createtime' field is present.
50 */
51 public static final int SSH_FILEXFER_ATTR_CREATETIME = 0x00000010;
52
53 /**
54 * Indicates that the 'mtime' field is present.
55 */
56 public static final int SSH_FILEXFER_ATTR_MODIFYTIME = 0x00000020;
57
58 /**
59 * Indicates that the 'acl' field is present.
60 */
61 public static final int SSH_FILEXFER_ATTR_ACL = 0x00000040;
62
63 /**
64 * Indicates that the 'owner' and 'group' fields are present.
65 */
66 public static final int SSH_FILEXFER_ATTR_OWNERGROUP = 0x00000080;
67
68 /**
69 * Indicates that additionally to the 'atime', 'createtime',
70 * 'mtime' and 'ctime' fields (if present), there is also
71 * 'atime-nseconds', 'createtime-nseconds', 'mtime-nseconds'
72 * and 'ctime-nseconds'.
73 */
74 public static final int SSH_FILEXFER_ATTR_SUBSECOND_TIMES = 0x00000100;
75
76 /**
77 * Indicates that the 'attrib-bits' and 'attrib-bits-valid'
78 * fields are present.
79 */
80 public static final int SSH_FILEXFER_ATTR_BITS = 0x00000200;
81
82 /**
83 * Indicates that the 'allocation-size' field is present. Field specifies the number of bytes that the
84 * file consumes on disk.
85 */
86 public static final int SSH_FILEXFER_ATTR_ALLOCATION_SIZE = 0x00000400;
87
88 /**
89 * Indicates that the 'text-hint' field is present.
90 */
91 public static final int SSH_FILEXFER_ATTR_TEXT_HINT = 0x00000800;
92
93 /**
94 * Indicates that the 'mime-type' field is present.
95 */
96 public static final int SSH_FILEXFER_ATTR_MIME_TYPE = 0x00001000;
97
98 /**
99 * Indicates that the 'link-count' field is present.
100 */
101 public static final int SSH_FILEXFER_ATTR_LINK_COUNT = 0x00002000;
102
103 /**
104 * Indicates that the 'untranslated-name' field is present.
105 */
106 public static final int SSH_FILEXFER_ATTR_UNTRANSLATED_NAME = 0x00004000;
107
108 /**
109 * Indicates that the 'ctime' field is present.
110 */
111 public static final int SSH_FILEXFER_ATTR_CTIME = 0x00008000;
112
113 /**
114 * Indicates that the 'extended-count' field (and probablby some
115 * 'extensions') is present.
116 */
117 public static final int SSH_FILEXFER_ATTR_EXTENDED = 0x80000000;
118 }