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.FileStore
public java.lang.String type()
type
in class java.nio.file.FileStore
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isReadOnly()
isReadOnly
in class java.nio.file.FileStore
public long getTotalSpace() throws java.io.IOException
getTotalSpace
in class java.nio.file.FileStore
java.io.IOException
public long getUsableSpace() throws java.io.IOException
getUsableSpace
in class java.nio.file.FileStore
java.io.IOException
public long getUnallocatedSpace() throws java.io.IOException
getUnallocatedSpace
in class java.nio.file.FileStore
java.io.IOException
public boolean supportsFileAttributeView(java.lang.Class<? extends java.nio.file.attribute.FileAttributeView> type)
supportsFileAttributeView
in class java.nio.file.FileStore
public boolean supportsFileAttributeView(java.lang.String name)
supportsFileAttributeView
in class java.nio.file.FileStore
public <V extends java.nio.file.attribute.FileStoreAttributeView> V getFileStoreAttributeView(java.lang.Class<V> type)
getFileStoreAttributeView
in class java.nio.file.FileStore
public java.lang.Object getAttribute(java.lang.String attribute) throws java.io.IOException
getAttribute
in class java.nio.file.FileStore
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.