public class BuckFileSystem extends FileSystem
| Constructor and Description |
|---|
BuckFileSystem(BuckFileSystemProvider provider,
String defaultDirectory)
Create a new filesystem that returns Path object optimized for memory usage
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Iterable<FileStore> |
getFileStores() |
Path |
getPath(String first,
String... more) |
Path |
getPathFromSegmentsUnsafe(String[] segments)
Construct a path object from given segments without and validation or postprocessing.
|
PathMatcher |
getPathMatcher(String syntaxAndPattern) |
Iterable<Path> |
getRootDirectories() |
String |
getSeparator() |
UserPrincipalLookupService |
getUserPrincipalLookupService() |
boolean |
isOpen() |
boolean |
isReadOnly() |
WatchService |
newWatchService() |
FileSystemProvider |
provider() |
Set<String> |
supportedFileAttributeViews() |
public BuckFileSystem(BuckFileSystemProvider provider, String defaultDirectory)
provider - File system provider that created this filesystemdefaultDirectory - The directory to use when constructing absolute paths out of relative
paths, usually this is a user directorypublic 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 Path getPathFromSegmentsUnsafe(String[] segments)
This function is only used for implementation of ForwardRelativePath and must not be used elsewhere.
public PathMatcher getPathMatcher(String syntaxAndPattern)
getPathMatcher in class FileSystempublic UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class FileSystempublic WatchService newWatchService() throws IOException
newWatchService in class FileSystemIOException