comparison src/ch/ethz/ssh2/SFTPFileHandle.java @ 273:91a31873c42a ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 11:21:46 -0700
parents
children
comparison
equal deleted inserted replaced
272:ce2f4e397703 273:91a31873c42a
1 package ch.ethz.ssh2;
2
3 import java.io.IOException;
4
5 /**
6 * @version $Id: SFTPFileHandle.java 151 2014-04-28 10:03:39Z dkocher@sudo.ch $
7 */
8 public class SFTPFileHandle {
9
10 private final SFTPClient client;
11
12 private final byte[] handle;
13
14 protected SFTPFileHandle(final SFTPClient client, final byte[] handle) {
15 this.client = client;
16 this.handle = handle;
17 }
18
19 /**
20 * Get the SFTPv3Client instance which created this handle.
21 *
22 * @return A SFTPv3Client instance.
23 */
24 public SFTPClient getClient() {
25 return client;
26 }
27
28 public byte[] getHandle() {
29 return handle;
30 }
31
32 public void close() throws IOException {
33 client.closeFile(this);
34 }
35 }