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 ObjectgetAttribute(String attribute)<V extends FileStoreAttributeView>
VgetFileStoreAttributeView(Class<V> type)SftpFileSystemgetFileSystem()longgetTotalSpace()longgetUnallocatedSpace()longgetUsableSpace()booleanisReadOnly()Stringname()booleansupportsFileAttributeView(Class<? extends FileAttributeView> type)booleansupportsFileAttributeView(String name)Stringtype()-
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:
isReadOnlyin classFileStore
-
getTotalSpace
public long getTotalSpace() throws IOException- Specified by:
getTotalSpacein classFileStore- Throws:
IOException
-
getUsableSpace
public long getUsableSpace() throws IOException- Specified by:
getUsableSpacein classFileStore- Throws:
IOException
-
getUnallocatedSpace
public long getUnallocatedSpace() throws IOException- Specified by:
getUnallocatedSpacein classFileStore- Throws:
IOException
-
supportsFileAttributeView
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
- Specified by:
supportsFileAttributeViewin classFileStore
-
supportsFileAttributeView
public boolean supportsFileAttributeView(String name)
- Specified by:
supportsFileAttributeViewin classFileStore
-
getFileStoreAttributeView
public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type)
- Specified by:
getFileStoreAttributeViewin classFileStore
-
getAttribute
public Object getAttribute(String attribute) throws IOException
- Specified by:
getAttributein classFileStore- Throws:
IOException
-
-