comparison src/com/trilead/ssh2/SFTPv3FileHandle.java @ 0:0ce5cc452d02

initial version
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 10:41:19 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0ce5cc452d02
1
2 package com.trilead.ssh2;
3
4 /**
5 * A <code>SFTPv3FileHandle</code>.
6 *
7 * @author Christian Plattner, plattner@trilead.com
8 * @version $Id: SFTPv3FileHandle.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
9 */
10
11 public class SFTPv3FileHandle {
12 final SFTPv3Client client;
13 final byte[] fileHandle;
14 boolean isClosed = false;
15
16 /* The constructor is NOT public */
17
18 SFTPv3FileHandle(SFTPv3Client client, byte[] h) {
19 this.client = client;
20 this.fileHandle = h;
21 }
22
23 /**
24 * Get the SFTPv3Client instance which created this handle.
25 *
26 * @return A SFTPv3Client instance.
27 */
28 public SFTPv3Client getClient() {
29 return client;
30 }
31
32 /**
33 * Check if this handle was closed with the {@link SFTPv3Client#closeFile(SFTPv3FileHandle)} method
34 * of the <code>SFTPv3Client</code> instance which created the handle.
35 *
36 * @return if the handle is closed.
37 */
38 public boolean isClosed() {
39 return isClosed;
40 }
41 }