public abstract class FilterFileStore extends FileStore
FilterFileStore contains another
FileStore, which it uses as its basic
source of data, possibly transforming the data along the
way or providing additional functionality.| Modifier and Type | Field and Description |
|---|---|
protected FileStore |
delegate
The underlying
FileStore instance. |
protected String |
scheme
URI scheme used for this instance.
|
| Constructor and Description |
|---|
FilterFileStore(FileStore delegate,
String scheme)
Construct a
FilterFileStore based on
the specified base store. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute) |
<V extends FileStoreAttributeView> |
getFileStoreAttributeView(Class<V> type) |
long |
getTotalSpace() |
long |
getUnallocatedSpace() |
long |
getUsableSpace() |
boolean |
isReadOnly() |
String |
name() |
boolean |
supportsFileAttributeView(Class<? extends FileAttributeView> type) |
boolean |
supportsFileAttributeView(String name) |
String |
toString() |
String |
type() |
protected final FileStore delegate
FileStore instance.protected final String scheme
public boolean isReadOnly()
isReadOnly in class FileStorepublic long getTotalSpace()
throws IOException
getTotalSpace in class FileStoreIOExceptionpublic long getUsableSpace()
throws IOException
getUsableSpace in class FileStoreIOExceptionpublic long getUnallocatedSpace()
throws IOException
getUnallocatedSpace in class FileStoreIOExceptionpublic boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
supportsFileAttributeView in class FileStorepublic boolean supportsFileAttributeView(String name)
supportsFileAttributeView in class FileStorepublic <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type)
getFileStoreAttributeView in class FileStorepublic Object getAttribute(String attribute) throws IOException
getAttribute in class FileStoreIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.