public void close ( ) throws IOException { try { file . close ( ) ; UnsignedInteger32 requestid ; while ( outstandingRequests . size ( ) > 0 ) { requestid = ( UnsignedInteger32 ) outstandingRequests . elementAt ( 0 ) ; outstandingRequests . removeElementAt ( 0 ) ; sftp . getResponse ( requestid ) ; } } catch ( SshException ex ) { throw new SshIOException ( ex ) ; } catch ( SftpStatusException ex ) { throw new IOException ( ex . getMessage ( ) ) ; } }
Closes the SFTP file handle .