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