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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilterFileStore(FileStore delegate, String scheme) Construct aFilterFileStorebased on the specified base store. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attribute) <V extends FileStoreAttributeView>
VgetFileStoreAttributeView(Class<V> type) longlonglongbooleanname()booleansupportsFileAttributeView(Class<? extends FileAttributeView> type) booleantoString()type()Methods inherited from class java.nio.file.FileStore
getBlockSize
-
Field Details
-
delegate
The underlyingFileStoreinstance. -
scheme
URI scheme used for this instance.
-
-
Constructor Details
-
FilterFileStore
Construct aFilterFileStorebased 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:
isReadOnlyin classFileStore
-
getTotalSpace
- Specified by:
getTotalSpacein classFileStore- Throws:
IOException
-
getUsableSpace
- Specified by:
getUsableSpacein classFileStore- Throws:
IOException
-
getUnallocatedSpace
- Specified by:
getUnallocatedSpacein classFileStore- Throws:
IOException
-
supportsFileAttributeView
- Specified by:
supportsFileAttributeViewin classFileStore
-
supportsFileAttributeView
- Specified by:
supportsFileAttributeViewin classFileStore
-
getFileStoreAttributeView
- Specified by:
getFileStoreAttributeViewin classFileStore
-
getAttribute
- Specified by:
getAttributein classFileStore- Throws:
IOException
-