public class SftpFileStore
extends java.nio.file.FileStore
| Modifier and Type | Field and Description |
|---|---|
private SftpFileSystem |
fs |
private java.lang.String |
name |
| Constructor and Description |
|---|
SftpFileStore(java.lang.String name,
SftpFileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attribute) |
<V extends java.nio.file.attribute.FileStoreAttributeView> |
getFileStoreAttributeView(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() |
private final SftpFileSystem fs
private final java.lang.String name
public SftpFileStore(java.lang.String name,
SftpFileSystem fs)
public final SftpFileSystem getFileSystem()
public java.lang.String name()
name in class java.nio.file.FileStorepublic java.lang.String type()
type in class java.nio.file.FileStorepublic boolean isReadOnly()
isReadOnly in class java.nio.file.FileStorepublic long getTotalSpace()
throws java.io.IOException
getTotalSpace in class java.nio.file.FileStorejava.io.IOExceptionpublic long getUsableSpace()
throws java.io.IOException
getUsableSpace in class java.nio.file.FileStorejava.io.IOExceptionpublic long getUnallocatedSpace()
throws java.io.IOException
getUnallocatedSpace in class java.nio.file.FileStorejava.io.IOExceptionpublic boolean supportsFileAttributeView(java.lang.Class<? extends java.nio.file.attribute.FileAttributeView> type)
supportsFileAttributeView in class java.nio.file.FileStorepublic boolean supportsFileAttributeView(java.lang.String name)
supportsFileAttributeView in class java.nio.file.FileStorepublic <V extends java.nio.file.attribute.FileStoreAttributeView> V getFileStoreAttributeView(java.lang.Class<V> type)
getFileStoreAttributeView in class java.nio.file.FileStorepublic java.lang.Object getAttribute(java.lang.String attribute)
throws java.io.IOException
getAttribute in class java.nio.file.FileStorejava.io.IOException