public 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 FileStore
public long getTotalSpace() throws IOException
getTotalSpace
in class FileStore
IOException
public long getUsableSpace() throws IOException
getUsableSpace
in class FileStore
IOException
public long getUnallocatedSpace() throws IOException
getUnallocatedSpace
in class FileStore
IOException
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
supportsFileAttributeView
in class FileStore
public boolean supportsFileAttributeView(String name)
supportsFileAttributeView
in class FileStore
public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type)
getFileStoreAttributeView
in class FileStore
public Object getAttribute(String attribute) throws IOException
getAttribute
in class FileStore
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.