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.FileSystem
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.nio.file.FileSystem
java.io.IOException
public boolean isOpen()
isOpen
in class java.nio.file.FileSystem
public boolean isReadOnly()
isReadOnly
in class java.nio.file.FileSystem
public java.lang.String getSeparator()
getSeparator
in class java.nio.file.FileSystem
public java.lang.Iterable<java.nio.file.Path> getRootDirectories()
getRootDirectories
in class java.nio.file.FileSystem
public java.lang.Iterable<java.nio.file.FileStore> getFileStores()
getFileStores
in class java.nio.file.FileSystem
public java.util.Set<java.lang.String> supportedFileAttributeViews()
supportedFileAttributeViews
in class java.nio.file.FileSystem
public java.nio.file.Path getPath(java.lang.String first, java.lang.String... more)
getPath
in class java.nio.file.FileSystem
public java.nio.file.PathMatcher getPathMatcher(java.lang.String syntaxAndPattern)
getPathMatcher
in class java.nio.file.FileSystem
public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService
in class java.nio.file.FileSystem
public java.nio.file.WatchService newWatchService() throws java.io.IOException
newWatchService
in class java.nio.file.FileSystem
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object