Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/SFTPv3FileAttributes.java @ 305:d2b303406d63 ganymed
remove extra override annotations that generate eclipse compiler errors
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 12:09:51 -0700 |
parents | 91a31873c42a |
children | 071eccdff8ea |
comparison
equal
deleted
inserted
replaced
304:abad243cb341 | 305:d2b303406d63 |
---|---|
86 * Checks if this entry is a directory. | 86 * Checks if this entry is a directory. |
87 * | 87 * |
88 * @return Returns true if permissions are available and they indicate | 88 * @return Returns true if permissions are available and they indicate |
89 * that this entry represents a directory. | 89 * that this entry represents a directory. |
90 */ | 90 */ |
91 @Override | |
92 public boolean isDirectory() { | 91 public boolean isDirectory() { |
93 if(permissions == null) { | 92 if(permissions == null) { |
94 return false; | 93 return false; |
95 } | 94 } |
96 return ((permissions & 0040000) == 0040000); | 95 return ((permissions & 0040000) == 0040000); |
100 * Checks if this entry is a regular file. | 99 * Checks if this entry is a regular file. |
101 * | 100 * |
102 * @return Returns true if permissions are available and they indicate | 101 * @return Returns true if permissions are available and they indicate |
103 * that this entry represents a regular file. | 102 * that this entry represents a regular file. |
104 */ | 103 */ |
105 @Override | |
106 public boolean isRegularFile() { | 104 public boolean isRegularFile() { |
107 if(permissions == null) { | 105 if(permissions == null) { |
108 return false; | 106 return false; |
109 } | 107 } |
110 return ((permissions & 0100000) == 0100000); | 108 return ((permissions & 0100000) == 0100000); |
114 * Checks if this entry is a a symlink. | 112 * Checks if this entry is a a symlink. |
115 * | 113 * |
116 * @return Returns true if permissions are available and they indicate | 114 * @return Returns true if permissions are available and they indicate |
117 * that this entry represents a symlink. | 115 * that this entry represents a symlink. |
118 */ | 116 */ |
119 @Override | |
120 public boolean isSymlink() { | 117 public boolean isSymlink() { |
121 if(permissions == null) { | 118 if(permissions == null) { |
122 return false; | 119 return false; |
123 } | 120 } |
124 return ((permissions & 0120000) == 0120000); | 121 return ((permissions & 0120000) == 0120000); |
213 * attributes from the server and when sending file attributes to the | 210 * attributes from the server and when sending file attributes to the |
214 * server. | 211 * server. |
215 * | 212 * |
216 * @return Encoded attributes | 213 * @return Encoded attributes |
217 */ | 214 */ |
218 @Override | |
219 public byte[] toBytes() { | 215 public byte[] toBytes() { |
220 TypesWriter tw = new TypesWriter(); | 216 TypesWriter tw = new TypesWriter(); |
221 int attrFlags = 0; | 217 int attrFlags = 0; |
222 if(this.size != null) { | 218 if(this.size != null) { |
223 attrFlags = attrFlags | AttribFlags.SSH_FILEXFER_ATTR_SIZE; | 219 attrFlags = attrFlags | AttribFlags.SSH_FILEXFER_ATTR_SIZE; |