Package org.apache.sshd.sftp.client.fs
Class SftpFileStore
- java.lang.Object
-
- java.nio.file.FileStore
-
- org.apache.sshd.sftp.client.fs.SftpFileStore
-
public class SftpFileStore extends FileStore
- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description SftpFileStore(String name, SftpFileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String attribute)
<V extends FileStoreAttributeView>
VgetFileStoreAttributeView(Class<V> type)
SftpFileSystem
getFileSystem()
long
getTotalSpace()
long
getUnallocatedSpace()
long
getUsableSpace()
boolean
isReadOnly()
String
name()
boolean
supportsFileAttributeView(Class<? extends FileAttributeView> type)
boolean
supportsFileAttributeView(String name)
String
type()
-
Methods inherited from class java.nio.file.FileStore
getBlockSize
-
-
-
-
Constructor Detail
-
SftpFileStore
public SftpFileStore(String name, SftpFileSystem fs)
-
-
Method Detail
-
getFileSystem
public final SftpFileSystem getFileSystem()
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classFileStore
-
getTotalSpace
public long getTotalSpace() throws IOException
- Specified by:
getTotalSpace
in classFileStore
- Throws:
IOException
-
getUsableSpace
public long getUsableSpace() throws IOException
- Specified by:
getUsableSpace
in classFileStore
- Throws:
IOException
-
getUnallocatedSpace
public long getUnallocatedSpace() throws IOException
- Specified by:
getUnallocatedSpace
in classFileStore
- Throws:
IOException
-
supportsFileAttributeView
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
- Specified by:
supportsFileAttributeView
in classFileStore
-
supportsFileAttributeView
public boolean supportsFileAttributeView(String name)
- Specified by:
supportsFileAttributeView
in classFileStore
-
getFileStoreAttributeView
public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type)
- Specified by:
getFileStoreAttributeView
in classFileStore
-
getAttribute
public Object getAttribute(String attribute) throws IOException
- Specified by:
getAttribute
in classFileStore
- Throws:
IOException
-
-