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