Class SftpFileSystem

    • Method Detail

      • getChannel

        protected com.jcraft.jsch.ChannelSftp getChannel()
                                                  throws java.io.IOException
        Returns an SFTP channel to the server.
        Returns:
        new or reused channel, never null.
        Throws:
        FileSystemException - if a session cannot be created.
        java.io.IOException - if an I/O error is detected.
      • putChannel

        protected void putChannel​(com.jcraft.jsch.ChannelSftp channel)
        Returns a channel to the pool.
        Parameters:
        channel - the used channel.
      • getGroupsIds

        public int[] getGroupsIds()
                           throws com.jcraft.jsch.JSchException,
                                  java.io.IOException
        Gets the (numeric) group IDs.
        Returns:
        the (numeric) group IDs.
        Throws:
        com.jcraft.jsch.JSchException - If a problem occurs while retrieving the group IDs.
        java.io.IOException - if an I/O error is detected.
        Since:
        2.1
      • getUId

        public int getUId()
                   throws com.jcraft.jsch.JSchException,
                          java.io.IOException
        Get the (numeric) group IDs.
        Returns:
        The numeric user ID
        Throws:
        com.jcraft.jsch.JSchException - If a problem occurs while retrieving the group ID.
        java.io.IOException - if an I/O error is detected.
        Since:
        2.1