Goldstein Lyor created SSHD-472: ----------------------------------- Summary: Create a Closeable SFTP Handle Key: SSHD-472 URL: https://issues.apache.org/jira/browse/SSHD-472 Project: MINA SSHD Issue Type: Improvement Affects Versions: 1.0.0 Reporter: Goldstein Lyor Assignee: Goldstein Lyor Priority: Minor Fix For: 1.0.0
Add a _CloseableHandle extends Handle implements java.io.Closeable_ definition and define _SftpClient#open/openDir_ to return it instead of the usual _Handle_. This way, they can be used in _try-with-resource_ blocks, while preserving backward compatibility with existing _Handle_ usage code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)