Package org.apache.lucene.tests.mockfile
Class FilterFileStore
java.lang.Object
java.nio.file.FileStore
org.apache.lucene.tests.mockfile.FilterFileStore
A
FilterFileStore
contains another FileStore
, which it uses as its basic source
of data, possibly transforming the data along the way or providing additional functionality.-
Field Summary
-
Constructor Summary
ConstructorDescriptionFilterFileStore
(FileStore delegate, String scheme) Construct aFilterFileStore
based on the specified base store. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attribute) <V extends FileStoreAttributeView>
VgetFileStoreAttributeView
(Class<V> type) long
long
long
boolean
name()
boolean
supportsFileAttributeView
(Class<? extends FileAttributeView> type) boolean
toString()
type()
Methods inherited from class java.nio.file.FileStore
getBlockSize
-
Field Details
-
delegate
The underlyingFileStore
instance. -
scheme
URI scheme used for this instance.
-
-
Constructor Details
-
FilterFileStore
Construct aFilterFileStore
based on the specified base store.- Parameters:
delegate
- specified base store.scheme
- URI scheme identifying this instance.
-
-
Method Details
-
name
-
type
-
toString
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in classFileStore
-
getTotalSpace
- Specified by:
getTotalSpace
in classFileStore
- Throws:
IOException
-
getUsableSpace
- Specified by:
getUsableSpace
in classFileStore
- Throws:
IOException
-
getUnallocatedSpace
- Specified by:
getUnallocatedSpace
in classFileStore
- Throws:
IOException
-
supportsFileAttributeView
- Specified by:
supportsFileAttributeView
in classFileStore
-
supportsFileAttributeView
- Specified by:
supportsFileAttributeView
in classFileStore
-
getFileStoreAttributeView
- Specified by:
getFileStoreAttributeView
in classFileStore
-
getAttribute
- Specified by:
getAttribute
in classFileStore
- Throws:
IOException
-