Class DefaultCloseableHandle
- java.lang.Object
-
- org.apache.sshd.client.subsystem.sftp.SftpClient.Handle
-
- org.apache.sshd.client.subsystem.sftp.SftpClient.CloseableHandle
-
- org.apache.sshd.client.subsystem.sftp.impl.DefaultCloseableHandle
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.nio.channels.Channel
public class DefaultCloseableHandle extends SftpClient.CloseableHandle
-
-
Field Summary
Fields Modifier and Type Field Description private SftpClient
client
private java.util.concurrent.atomic.AtomicBoolean
open
-
Constructor Summary
Constructors Constructor Description DefaultCloseableHandle(SftpClient client, java.lang.String path, byte[] id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(java.lang.Object obj)
SftpClient
getSftpClient()
int
hashCode()
boolean
isOpen()
-
Methods inherited from class org.apache.sshd.client.subsystem.sftp.SftpClient.Handle
getIdentifier, getPath, length, toString
-
-
-
-
Field Detail
-
open
private final java.util.concurrent.atomic.AtomicBoolean open
-
client
private final SftpClient client
-
-
Constructor Detail
-
DefaultCloseableHandle
public DefaultCloseableHandle(SftpClient client, java.lang.String path, byte[] id)
-
-
Method Detail
-
getSftpClient
public final SftpClient getSftpClient()
-
isOpen
public boolean isOpen()
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSftpClient.Handle
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSftpClient.Handle
-
-