comparison app/src/main/java/ch/ethz/ssh2/SFTPFileHandle.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/SFTPFileHandle.java@91a31873c42a
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
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 }