public class FilterFileSystem
extends java.nio.file.FileSystem
FilterFileSystem contains another
FileSystem, 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.FileSystem |
delegate
The underlying
FileSystem instance. |
protected FilterFileSystemProvider |
parent
FileSystemProvider that created this FilterFileSystem
|
| Constructor and Description |
|---|
FilterFileSystem(FilterFileSystemProvider parent,
java.nio.file.FileSystem delegate)
Construct a
FilterFileSystem based on
the specified base filesystem. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.nio.file.FileSystem |
getDelegate()
Returns the
FileSystem we wrap. |
java.lang.Iterable<java.nio.file.FileStore> |
getFileStores() |
java.nio.file.spi.FileSystemProvider |
getParent()
Returns the
FilterFileSystemProvider sent to this on init. |
java.nio.file.Path |
getPath(java.lang.String first,
java.lang.String... more) |
java.nio.file.PathMatcher |
getPathMatcher(java.lang.String syntaxAndPattern) |
java.lang.Iterable<java.nio.file.Path> |
getRootDirectories() |
java.lang.String |
getSeparator() |
java.nio.file.attribute.UserPrincipalLookupService |
getUserPrincipalLookupService() |
boolean |
isOpen() |
boolean |
isReadOnly() |
java.nio.file.WatchService |
newWatchService() |
java.nio.file.spi.FileSystemProvider |
provider() |
java.util.Set<java.lang.String> |
supportedFileAttributeViews() |
protected final FilterFileSystemProvider parent
protected final java.nio.file.FileSystem delegate
FileSystem instance.public FilterFileSystem(FilterFileSystemProvider parent, java.nio.file.FileSystem delegate)
FilterFileSystem based 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.
delegate - specified base channel.public java.nio.file.spi.FileSystemProvider provider()
provider in class java.nio.file.FileSystempublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.nio.file.FileSystemjava.io.IOExceptionpublic boolean isOpen()
isOpen in class java.nio.file.FileSystempublic boolean isReadOnly()
isReadOnly in class java.nio.file.FileSystempublic java.lang.String getSeparator()
getSeparator in class java.nio.file.FileSystempublic java.lang.Iterable<java.nio.file.Path> getRootDirectories()
getRootDirectories in class java.nio.file.FileSystempublic java.lang.Iterable<java.nio.file.FileStore> getFileStores()
getFileStores in class java.nio.file.FileSystempublic java.util.Set<java.lang.String> supportedFileAttributeViews()
supportedFileAttributeViews in class java.nio.file.FileSystempublic java.nio.file.Path getPath(java.lang.String first,
java.lang.String... more)
getPath in class java.nio.file.FileSystempublic java.nio.file.PathMatcher getPathMatcher(java.lang.String syntaxAndPattern)
getPathMatcher in class java.nio.file.FileSystempublic java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class java.nio.file.FileSystempublic java.nio.file.WatchService newWatchService()
throws java.io.IOException
newWatchService in class java.nio.file.FileSystemjava.io.IOExceptionpublic java.nio.file.FileSystem getDelegate()
FileSystem we wrap.public java.nio.file.spi.FileSystemProvider getParent()
FilterFileSystemProvider sent to this on init.Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.