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.FileSystem
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.nio.file.FileSystem
java.io.IOException
public boolean isOpen()
isOpen
in class java.nio.file.FileSystem
public boolean isReadOnly()
isReadOnly
in class java.nio.file.FileSystem
public java.lang.String getSeparator()
getSeparator
in class java.nio.file.FileSystem
public java.lang.Iterable<java.nio.file.Path> getRootDirectories()
getRootDirectories
in class java.nio.file.FileSystem
public java.lang.Iterable<java.nio.file.FileStore> getFileStores()
getFileStores
in class java.nio.file.FileSystem
public java.util.Set<java.lang.String> supportedFileAttributeViews()
supportedFileAttributeViews
in class java.nio.file.FileSystem
public java.nio.file.Path getPath(java.lang.String first, java.lang.String... more)
getPath
in class java.nio.file.FileSystem
public java.nio.file.PathMatcher getPathMatcher(java.lang.String syntaxAndPattern)
getPathMatcher
in class java.nio.file.FileSystem
public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService
in class java.nio.file.FileSystem
public java.nio.file.WatchService newWatchService() throws java.io.IOException
newWatchService
in class java.nio.file.FileSystem
java.io.IOException
public java.nio.file.FileSystem getDelegate()
FileSystem
we wrap.public java.nio.file.spi.FileSystemProvider getParent()
FilterFileSystemProvider
sent to this on init.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.