Class SftpFileSystem

    • Field Detail

      • UNIVERSAL_SUPPORTED_VIEWS

        public static final java.util.NavigableSet<java.lang.String> UNIVERSAL_SUPPORTED_VIEWS
      • id

        private final java.lang.String id
      • version

        private int version
      • supportedViews

        private java.util.Set<java.lang.String> supportedViews
      • defaultDir

        private SftpPath defaultDir
      • readBufferSize

        private int readBufferSize
      • writeBufferSize

        private int writeBufferSize
      • stores

        private final java.util.List<java.nio.file.FileStore> stores
      • open

        private final java.util.concurrent.atomic.AtomicBoolean open
      • clientSession

        private java.util.concurrent.atomic.AtomicReference<ClientSession> clientSession
    • Method Detail

      • init

        protected void init()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getId

        public final java.lang.String getId()
      • getVersion

        public final int getVersion()
      • getReadBufferSize

        public int getReadBufferSize()
      • setReadBufferSize

        public void setReadBufferSize​(int size)
      • getWriteBufferSize

        public int getWriteBufferSize()
      • setWriteBufferSize

        public void setWriteBufferSize​(int size)
      • setClientSession

        protected void setClientSession​(ClientSession newSession)
      • sessionForSftpClient

        protected ClientSession sessionForSftpClient()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getClient

        public SftpClient getClient()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.nio.file.FileSystem
        Throws:
        java.io.IOException
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in class java.nio.file.FileSystem
      • supportedFileAttributeViews

        public java.util.Set<java.lang.String> supportedFileAttributeViews()
        Specified by:
        supportedFileAttributeViews in class java.nio.file.FileSystem
      • getUserPrincipalLookupService

        public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
        Specified by:
        getUserPrincipalLookupService in class java.nio.file.FileSystem
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object