public abstract class FilterFileStore
extends java.nio.file.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 java.nio.file.FileStore |
delegate
The underlying
FileStore instance. |
protected java.lang.String |
scheme
URI scheme used for this instance.
|
| Constructor and Description |
|---|
FilterFileStore(java.nio.file.FileStore delegate,
java.lang.String scheme)
Construct a
FilterFileStore based on
the specified base store. |
| 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) |
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 |
toString() |
java.lang.String |
type() |
protected final java.nio.file.FileStore delegate
FileStore instance.protected final java.lang.String scheme
public FilterFileStore(java.nio.file.FileStore delegate,
java.lang.String scheme)
FilterFileStore based on
the specified base store.delegate - specified base store.scheme - URI scheme identifying this instance.public java.lang.String name()
name in class java.nio.file.FileStorepublic java.lang.String type()
type in class java.nio.file.FileStorepublic java.lang.String toString()
toString in class java.lang.Objectpublic 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.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.