1 /* 2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved. 3 * Please refer to the LICENSE.txt for licensing details. 4 */ 5 package ch.ethz.ssh2; 6 7 /** 8 * A <code>SFTPv3FileHandle</code>. 9 * 10 * @author Christian Plattner 11 * @version 2.50, 03/15/10 12 */ 13 14 public class SFTPv3FileHandle 15 { 16 protected final SFTPv3Client client; 17 protected final byte[] fileHandle; 18 protected boolean isClosed; 19 20 protected SFTPv3FileHandle(SFTPv3Client client, byte[] h) 21 { 22 this.client = client; 23 this.fileHandle = h; 24 } 25 26 /** 27 * Get the SFTPv3Client instance which created this handle. 28 * 29 * @return A SFTPv3Client instance. 30 */ 31 public SFTPv3Client getClient() 32 { 33 return client; 34 } 35 36 /** 37 * Check if this handle was closed with the {@link SFTPv3Client#closeFile(SFTPv3FileHandle)} method 38 * of the <code>SFTPv3Client</code> instance which created the handle. 39 * 40 * @return if the handle is closed. 41 */ 42 public boolean isClosed() 43 { 44 return isClosed; 45 } 46 } 47