public class FileSystemImpl<FileObject>
extends java.nio.file.FileSystem
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected FileSystemProviderImpl |
provider |
| Constructor and Description |
|---|
FileSystemImpl(FileSystemProviderImpl provider)
Create a new BufferFileSystem.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileObject |
getFileObject(PathImpl path)
Get the FileObject associated with the given PathImpl.
|
java.lang.Iterable<java.nio.file.FileStore> |
getFileStores() |
PathImpl |
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() |
FileSystemProviderImpl |
provider() |
FileObject |
putFileObject(PathImpl path,
FileObject fileObject)
Associate a FileObject with the given PathImpl.
|
java.util.Set<java.lang.String> |
supportedFileAttributeViews() |
protected FileSystemProviderImpl provider
protected boolean closed
public FileSystemImpl(FileSystemProviderImpl provider)
provider - The provider associated with this FileSystemjava.lang.IllegalArgumentException - if provider is nullpublic FileSystemProviderImpl 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 final 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.PathMatcher getPathMatcher(java.lang.String syntaxAndPattern)
getPathMatcher in class java.nio.file.FileSystemjava.lang.UnsupportedOperationExceptionpublic java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class java.nio.file.FileSystemjava.lang.UnsupportedOperationExceptionpublic java.nio.file.WatchService newWatchService()
throws java.io.IOException
newWatchService in class java.nio.file.FileSystemjava.lang.UnsupportedOperationExceptionjava.io.IOExceptionpublic PathImpl getPath(java.lang.String first, java.lang.String... more)
getPath in class java.nio.file.FileSystemfirst - The first part of the pathmore - Zero or more subsequent parts of the pathjava.lang.IllegalArgumentException - if fileSystem or first is null or emptyjava.nio.file.InvalidPathException - if the path contains whitespace charactersjava.nio.file.ClosedFileSystemException - if this FileSystem has been closedPathImpl.PathImpl(FileSystem, String, String...)}public FileObject getFileObject(PathImpl path)
path - A PathImplpublic FileObject putFileObject(PathImpl path, FileObject fileObject) throws java.io.IOException
path - A PathImplfileObject - A FileObjectjava.io.IOException - if an IOException occurredjava.lang.IllegalArgumentException - if path is null or path is a directory