Package org.smallmind.file.jailed
Class JailedFileSystem
- java.lang.Object
-
- java.nio.file.FileSystem
-
- org.smallmind.file.jailed.JailedFileSystem
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class JailedFileSystem extends FileSystem
-
-
Constructor Summary
Constructors Constructor Description JailedFileSystem(JailedFileSystemProvider jailedFileSystemProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Iterable<FileStore>getFileStores()PathgetPath(String first, String... more)PathMatchergetPathMatcher(String syntaxAndPattern)Iterable<Path>getRootDirectories()StringgetSeparator()UserPrincipalLookupServicegetUserPrincipalLookupService()booleanisOpen()booleanisReadOnly()WatchServicenewWatchService()FileSystemProviderprovider()Set<String>supportedFileAttributeViews()
-
-
-
Constructor Detail
-
JailedFileSystem
public JailedFileSystem(JailedFileSystemProvider jailedFileSystemProvider)
-
-
Method Detail
-
provider
public FileSystemProvider provider()
- Specified by:
providerin classFileSystem
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin classFileSystem
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin classFileSystem
-
getSeparator
public String getSeparator()
- Specified by:
getSeparatorin classFileSystem
-
getRootDirectories
public Iterable<Path> getRootDirectories()
- Specified by:
getRootDirectoriesin classFileSystem
-
getFileStores
public Iterable<FileStore> getFileStores()
- Specified by:
getFileStoresin classFileSystem
-
supportedFileAttributeViews
public Set<String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
getPath
public Path getPath(String first, String... more)
- Specified by:
getPathin classFileSystem
-
getPathMatcher
public PathMatcher getPathMatcher(String syntaxAndPattern)
- Specified by:
getPathMatcherin classFileSystem
-
getUserPrincipalLookupService
public UserPrincipalLookupService getUserPrincipalLookupService()
- Specified by:
getUserPrincipalLookupServicein classFileSystem
-
newWatchService
public WatchService newWatchService() throws IOException
- Specified by:
newWatchServicein classFileSystem- Throws:
IOException
-
-