public class MockFileSystem
extends java.nio.file.FileSystem
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
private java.util.concurrent.atomic.AtomicBoolean |
open |
| Constructor and Description |
|---|
MockFileSystem(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.Iterable<java.nio.file.FileStore> |
getFileStores() |
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() |
java.lang.String |
toString() |
private final java.util.concurrent.atomic.AtomicBoolean open
private final java.lang.String name
public java.nio.file.spi.FileSystemProvider 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 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.Path getPath(java.lang.String first,
java.lang.String... more)
getPath in class java.nio.file.FileSystempublic java.nio.file.PathMatcher getPathMatcher(java.lang.String syntaxAndPattern)
getPathMatcher in class java.nio.file.FileSystempublic java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class java.nio.file.FileSystempublic java.nio.file.WatchService newWatchService()
throws java.io.IOException
newWatchService in class java.nio.file.FileSystemjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object