Package com.google.common.jimfs
Class JimfsFileSystems
- java.lang.Object
-
- com.google.common.jimfs.JimfsFileSystems
-
final class JimfsFileSystems extends java.lang.Object
Initializes and configures new file system instances.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Runnable
DO_NOTHING
-
Constructor Summary
Constructors Modifier Constructor Description private
JimfsFileSystems()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static FileSystemView
createDefaultView(Configuration config, JimfsFileStore fileStore, PathService pathService)
Creates the default view of the file system using the given working directory.private static JimfsFileStore
createFileStore(Configuration config, PathService pathService, FileSystemState state)
Creates the file store for the file system.static JimfsFileSystem
newFileSystem(JimfsFileSystemProvider provider, java.net.URI uri, Configuration config)
Initialize and configure a new file system with the given provider and URI, using the given configuration.private static java.lang.Runnable
removeFileSystemRunnable(java.net.URI uri)
Returns aRunnable
that will remove the file system with the givenURI
from the system provider's cache when called.
-
-
-
Method Detail
-
removeFileSystemRunnable
private static java.lang.Runnable removeFileSystemRunnable(java.net.URI uri)
Returns aRunnable
that will remove the file system with the givenURI
from the system provider's cache when called.
-
newFileSystem
public static JimfsFileSystem newFileSystem(JimfsFileSystemProvider provider, java.net.URI uri, Configuration config) throws java.io.IOException
Initialize and configure a new file system with the given provider and URI, using the given configuration.- Throws:
java.io.IOException
-
createFileStore
private static JimfsFileStore createFileStore(Configuration config, PathService pathService, FileSystemState state)
Creates the file store for the file system.
-
createDefaultView
private static FileSystemView createDefaultView(Configuration config, JimfsFileStore fileStore, PathService pathService) throws java.io.IOException
Creates the default view of the file system using the given working directory.- Throws:
java.io.IOException
-
-