Package org.apache.lucene.tests.mockfile
Class FilterFileSystem
java.lang.Object
java.nio.file.FileSystem
org.apache.lucene.tests.mockfile.FilterFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable
A
FilterFileSystem contains another FileSystem, which it uses as its basic source
of data, possibly transforming the data along the way or providing additional functionality.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FileSystemThe underlyingFileSysteminstance.protected final FilterFileSystemProviderFileSystemProvider that created this FilterFileSystem -
Constructor Summary
ConstructorsConstructorDescriptionFilterFileSystem(FilterFileSystemProvider parent, FileSystem delegate) Construct aFilterFileSystembased on the specified base filesystem. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns theFileSystemwe wrap.getPathMatcher(String syntaxAndPattern) booleanisOpen()booleanprovider()
-
Field Details
-
parent
FileSystemProvider that created this FilterFileSystem -
delegate
The underlyingFileSysteminstance.
-
-
Constructor Details
-
FilterFileSystem
Construct aFilterFileSystembased on the specified base filesystem.Note that base filesystem is closed if this filesystem is closed, however the default filesystem provider will never be closed, it doesn't support that.
- Parameters:
delegate- specified base channel.
-
-
Method Details
-
provider
- Specified by:
providerin classFileSystem
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpenin classFileSystem
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classFileSystem
-
getSeparator
- Specified by:
getSeparatorin classFileSystem
-
getRootDirectories
- Specified by:
getRootDirectoriesin classFileSystem
-
getFileStores
- Specified by:
getFileStoresin classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
getPath
- Specified by:
getPathin classFileSystem
-
getPathMatcher
- Specified by:
getPathMatcherin classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupServicein classFileSystem
-
newWatchService
- Specified by:
newWatchServicein classFileSystem- Throws:
IOException
-
getDelegate
Returns theFileSystemwe wrap.
-