comparison src/ch/ethz/ssh2/SFTPv6Client.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
35 public SFTPv6Client(Connection conn, PacketListener listener) throws IOException { 35 public SFTPv6Client(Connection conn, PacketListener listener) throws IOException {
36 super(conn, 6, listener); 36 super(conn, 6, listener);
37 this.listener = listener; 37 this.listener = listener;
38 } 38 }
39 39
40 @Override
41 public SFTPv6FileAttributes fstat(SFTPFileHandle handle) throws IOException { 40 public SFTPv6FileAttributes fstat(SFTPFileHandle handle) throws IOException {
42 int req_id = generateNextRequestID(); 41 int req_id = generateNextRequestID();
43 42
44 TypesWriter tw = new TypesWriter(); 43 TypesWriter tw = new TypesWriter();
45 tw.writeString(handle.getHandle(), 0, handle.getHandle().length); 44 tw.writeString(handle.getHandle(), 0, handle.getHandle().length);
104 String errorMessage = tr.readString(); 103 String errorMessage = tr.readString();
105 listener.read(errorMessage); 104 listener.read(errorMessage);
106 throw new SFTPException(errorMessage, errorCode); 105 throw new SFTPException(errorMessage, errorCode);
107 } 106 }
108 107
109 @Override
110 public SFTPv6FileAttributes stat(String path) throws IOException { 108 public SFTPv6FileAttributes stat(String path) throws IOException {
111 return statBoth(path, Packet.SSH_FXP_STAT); 109 return statBoth(path, Packet.SSH_FXP_STAT);
112 } 110 }
113 111
114 @Override
115 public SFTPv6FileAttributes lstat(String path) throws IOException { 112 public SFTPv6FileAttributes lstat(String path) throws IOException {
116 return statBoth(path, Packet.SSH_FXP_LSTAT); 113 return statBoth(path, Packet.SSH_FXP_LSTAT);
117 } 114 }
118 115
119 116
167 listener.read(errorMessage); 164 listener.read(errorMessage);
168 throw new SFTPException(errorMessage, errorCode); 165 throw new SFTPException(errorMessage, errorCode);
169 } 166 }
170 } 167 }
171 168
172 @Override
173 public final SFTPFileHandle openDirectory(String path) throws IOException { 169 public final SFTPFileHandle openDirectory(String path) throws IOException {
174 int req_id = generateNextRequestID(); 170 int req_id = generateNextRequestID();
175 171
176 TypesWriter tw = new TypesWriter(); 172 TypesWriter tw = new TypesWriter();
177 tw.writeString(path, this.getCharset()); 173 tw.writeString(path, this.getCharset());
209 * 205 *
210 * @param dirName See the {@link SFTPv6Client comment} for the class for more details. 206 * @param dirName See the {@link SFTPv6Client comment} for the class for more details.
211 * @return A Vector containing {@link SFTPv6DirectoryEntry} objects. 207 * @return A Vector containing {@link SFTPv6DirectoryEntry} objects.
212 * @throws IOException 208 * @throws IOException
213 */ 209 */
214 @Override
215 public List<SFTPv6DirectoryEntry> ls(String dirName) throws IOException { 210 public List<SFTPv6DirectoryEntry> ls(String dirName) throws IOException {
216 SFTPFileHandle handle = openDirectory(dirName); 211 SFTPFileHandle handle = openDirectory(dirName);
217 List<SFTPv6DirectoryEntry> result = scanDirectory(handle.getHandle()); 212 List<SFTPv6DirectoryEntry> result = scanDirectory(handle.getHandle());
218 closeFile(handle); 213 closeFile(handle);
219 return result; 214 return result;
225 * 220 *
226 * @param filename See the {@link SFTPv6Client comment} for the class for more details. 221 * @param filename See the {@link SFTPv6Client comment} for the class for more details.
227 * @return a SFTPFileHandle handle 222 * @return a SFTPFileHandle handle
228 * @throws IOException 223 * @throws IOException
229 */ 224 */
230 @Override
231 public SFTPFileHandle createFile(String filename) throws IOException { 225 public SFTPFileHandle createFile(String filename) throws IOException {
232 return createFile(filename, new SFTPv6FileAttributes()); 226 return createFile(filename, new SFTPv6FileAttributes());
233 } 227 }
234 228
235 /** 229 /**
244 * structure make sense. You need only to set those fields where you want 238 * structure make sense. You need only to set those fields where you want
245 * to override the server's defaults. 239 * to override the server's defaults.
246 * @return a SFTPFileHandle handle 240 * @return a SFTPFileHandle handle
247 * @throws IOException 241 * @throws IOException
248 */ 242 */
249 @Override
250 public SFTPFileHandle createFile(String filename, SFTPFileAttributes attr) throws IOException { 243 public SFTPFileHandle createFile(String filename, SFTPFileAttributes attr) throws IOException {
251 return openFile(filename, OpenFlags.SSH_FXF_CREATE_NEW, attr); 244 return openFile(filename, OpenFlags.SSH_FXF_CREATE_NEW, attr);
252 } 245 }
253 246
254 @Override
255 public SFTPFileHandle openFile(String filename, int flags) throws IOException { 247 public SFTPFileHandle openFile(String filename, int flags) throws IOException {
256 return this.openFile(filename, flags, new SFTPv6FileAttributes()); 248 return this.openFile(filename, flags, new SFTPv6FileAttributes());
257 } 249 }
258 250
259 @Override 251 @Override