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 java.nio.file.FileStore
-
-
Field Summary
Fields Modifier and Type Field Description private SftpFileSystem
fs
private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description SftpFileStore(java.lang.String name, SftpFileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getAttribute(java.lang.String attribute)
<V extends java.nio.file.attribute.FileStoreAttributeView>
VgetFileStoreAttributeView(java.lang.Class<V> type)
SftpFileSystem
getFileSystem()
long
getTotalSpace()
long
getUnallocatedSpace()
long
getUsableSpace()
boolean
isReadOnly()
java.lang.String
name()
boolean
supportsFileAttributeView(java.lang.Class<? extends java.nio.file.attribute.FileAttributeView> type)
boolean
supportsFileAttributeView(java.lang.String name)
java.lang.String
type()
-
-
-
Field Detail
-
fs
private final SftpFileSystem fs
-
name
private final java.lang.String name
-
-
Constructor Detail
-
SftpFileStore
public SftpFileStore(java.lang.String name, SftpFileSystem fs)
-
-
Method Detail
-
getFileSystem
public final SftpFileSystem getFileSystem()
-
name
public java.lang.String name()
- Specified by:
name
in classjava.nio.file.FileStore
-
type
public java.lang.String type()
- Specified by:
type
in classjava.nio.file.FileStore
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classjava.nio.file.FileStore
-
getTotalSpace
public long getTotalSpace() throws java.io.IOException
- Specified by:
getTotalSpace
in classjava.nio.file.FileStore
- Throws:
java.io.IOException
-
getUsableSpace
public long getUsableSpace() throws java.io.IOException
- Specified by:
getUsableSpace
in classjava.nio.file.FileStore
- Throws:
java.io.IOException
-
getUnallocatedSpace
public long getUnallocatedSpace() throws java.io.IOException
- Specified by:
getUnallocatedSpace
in classjava.nio.file.FileStore
- Throws:
java.io.IOException
-
supportsFileAttributeView
public boolean supportsFileAttributeView(java.lang.Class<? extends java.nio.file.attribute.FileAttributeView> type)
- Specified by:
supportsFileAttributeView
in classjava.nio.file.FileStore
-
supportsFileAttributeView
public boolean supportsFileAttributeView(java.lang.String name)
- Specified by:
supportsFileAttributeView
in classjava.nio.file.FileStore
-
getFileStoreAttributeView
public <V extends java.nio.file.attribute.FileStoreAttributeView> V getFileStoreAttributeView(java.lang.Class<V> type)
- Specified by:
getFileStoreAttributeView
in classjava.nio.file.FileStore
-
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute) throws java.io.IOException
- Specified by:
getAttribute
in classjava.nio.file.FileStore
- Throws:
java.io.IOException
-
-