Package com.google.common.jimfs
Class JimfsFileSystems
- java.lang.Object
-
- com.google.common.jimfs.JimfsFileSystems
-
final class JimfsFileSystems extends java.lang.ObjectInitializes and configures new file system instances.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.RunnableDO_NOTHING
-
Constructor Summary
Constructors Modifier Constructor Description privateJimfsFileSystems()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static FileSystemViewcreateDefaultView(Configuration config, JimfsFileStore fileStore, PathService pathService)Creates the default view of the file system using the given working directory.private static JimfsFileStorecreateFileStore(Configuration config, PathService pathService, FileSystemState state)Creates the file store for the file system.static JimfsFileSystemnewFileSystem(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.RunnableremoveFileSystemRunnable(java.net.URI uri)Returns aRunnablethat will remove the file system with the givenURIfrom the system provider's cache when called.
-
-
-
Method Detail
-
removeFileSystemRunnable
private static java.lang.Runnable removeFileSystemRunnable(java.net.URI uri)
Returns aRunnablethat will remove the file system with the givenURIfrom 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
-
-